<feed xmlns='http://www.w3.org/2005/Atom'>
<title>viewer.git/indra/linux_crash_logger/linux_crash_logger.cpp, branch 26.1.1</title>
<subtitle>Megapahit's fork of the Second Life viewer.
</subtitle>
<id>https://megapahit.org/viewer.git/atom?h=26.1.1</id>
<link rel='self' href='https://megapahit.org/viewer.git/atom?h=26.1.1'/>
<link rel='alternate' type='text/html' href='https://megapahit.org/viewer.git/'/>
<updated>2024-04-29T04:56:09Z</updated>
<entry>
<title>#824 Process source files in bulk: replace tabs with spaces, convert CRLF to LF, and trim trailing whitespaces as needed</title>
<updated>2024-04-29T04:56:09Z</updated>
<author>
<name>Andrey Lihatskiy</name>
<email>alihatskiy@productengine.com</email>
</author>
<published>2024-04-29T04:43:28Z</published>
<link rel='alternate' type='text/html' href='https://megapahit.org/viewer.git/commit/?id=1b68f71348ecf3983b76b40d7940da8377f049b7'/>
<id>urn:sha1:1b68f71348ecf3983b76b40d7940da8377f049b7</id>
<content type='text'>
</content>
</entry>
<entry>
<title>DRTVWR-418: Unify control flow through LLAppViewer across platforms.</title>
<updated>2016-06-30T20:51:50Z</updated>
<author>
<name>Nat Goodspeed</name>
<email>nat@lindenlab.com</email>
</author>
<published>2016-06-30T20:51:50Z</published>
<link rel='alternate' type='text/html' href='https://megapahit.org/viewer.git/commit/?id=464a0df4c1d3e4073fe0bde506ac1d4aa194b02f'/>
<id>urn:sha1:464a0df4c1d3e4073fe0bde506ac1d4aa194b02f</id>
<content type='text'>
The LLApp API used to consist of init(), mainLoop(), cleanup() methods. This
makes sense -- but on Mac that structure was being subverted. The method
called mainLoop() was in fact being called once per frame. There was
initialization code in the method, which (on Mac) needed to be skipped with an
already-initialized bool. There was a 'while' loop which (on Mac) needed to be
turned into an 'if' instead so the method would return after every frame.

Rename LLApp::mainLoop() to frame(). Propagate through subclasses LLAppViewer
and LLCrashLogger. Document the fact that frame() returns true to mean "done."
(This was always the case, but had to be inferred from the code.)

Rename the Mac Objective-C function mainLoop to oneFrame. Rename the C++ free
function it calls from runMainLoop() to pumpMainLoop(). Add comments to
llappdelegate-objc.mm explaining (inferred) control flow.

Change the Linux viewer main() and the Windows viewer WINMAIN() from a single
LLAppViewer::mainLoop() call to repeatedly call frame() until it returns true.

Move initialization code from the top of LLAppViewer::frame() to the init()
method, where it more properly belongs. Remove corresponding
mMainLoopInitialized flag (and all references) from LLAppViewer.

Remove 'while (! LLApp::isExiting())' (or on Mac, 'if (! LLApp::isExiting())')
from LLAppViewer::frame() -- thus unindenting the whole body of the 'while'
and causing many lines of apparent change. (Apologies to reviewers.)

There are four LLApp states: APP_STATUS_RUNNING, APP_STATUS_QUITTING,
APP_STATUS_STOPPED and APP_STATUS_ERROR. Change LLAppViewer::frame() return
value from (isExiting()) (QUITTING or ERROR) to (! isRunning()). I do not know
under what circumstances the state might transition to STOPPED during a
frame() call, but I'm quite sure that if it does, we don't want to call
frame() again. We only want a subsequent call if the state is RUNNING.

Also rename mainLoop() method in LLCrashLogger subclasses
LLCrashLoggerWindows, LLCrashLoggerMac, LLCrashLoggerLinux. Of course it's
completely up to the frame() method whether to yield control; none of those in
fact do. Honor protocol by returning true (frame() is done), even though each
one's main() caller ignores the return value.

In fact LLCrashLoggerWindows::mainLoop() wasn't using the return protocol
correctly anyway, returning wParam or 0 or 1 -- possibly because the return
protocol was never explicitly documented. It should always return true: "I'm
done, don't call me again."
</content>
</entry>
<entry>
<title>merge DRTVWR-398 build cleanup fixes</title>
<updated>2016-03-07T17:41:11Z</updated>
<author>
<name>Oz Linden</name>
<email>oz@lindenlab.com</email>
</author>
<published>2016-03-07T17:41:11Z</published>
<link rel='alternate' type='text/html' href='https://megapahit.org/viewer.git/commit/?id=5822fb00b605d4f4ddd01e887b40d04b67e162a9'/>
<id>urn:sha1:5822fb00b605d4f4ddd01e887b40d04b67e162a9</id>
<content type='text'>
</content>
</entry>
<entry>
<title>remove execute permission from many files that should not have it</title>
<updated>2015-11-10T14:48:56Z</updated>
<author>
<name>Oz Linden</name>
<email>oz@lindenlab.com</email>
</author>
<published>2015-11-10T14:48:56Z</published>
<link rel='alternate' type='text/html' href='https://megapahit.org/viewer.git/commit/?id=c8726aba303bcf1207b730a344536e25491420bc'/>
<id>urn:sha1:c8726aba303bcf1207b730a344536e25491420bc</id>
<content type='text'>
</content>
</entry>
<entry>
<title>STORM-2086 Convert old style llinfos and llwarns to new format</title>
<updated>2014-11-20T21:25:11Z</updated>
<author>
<name>Jonathan Yap</name>
<email>jhwelch@gmail.com</email>
</author>
<published>2014-11-20T21:25:11Z</published>
<link rel='alternate' type='text/html' href='https://megapahit.org/viewer.git/commit/?id=44f5d7320952de2c4c7e1062b1c02c2f521400fa'/>
<id>urn:sha1:44f5d7320952de2c4c7e1062b1c02c2f521400fa</id>
<content type='text'>
</content>
</entry>
<entry>
<title>merge with release</title>
<updated>2014-04-08T02:09:40Z</updated>
<author>
<name>Richard Linden</name>
<email>none@none</email>
</author>
<published>2014-04-08T02:09:40Z</published>
<link rel='alternate' type='text/html' href='https://megapahit.org/viewer.git/commit/?id=98aabdc176c23de9ba23f902dc2015f9c775d26e'/>
<id>urn:sha1:98aabdc176c23de9ba23f902dc2015f9c775d26e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Creating a cleaner branch</title>
<updated>2013-12-04T01:06:06Z</updated>
<author>
<name>Aura Linden</name>
<email>aura@lindenlab.com</email>
</author>
<published>2013-12-04T01:06:06Z</published>
<link rel='alternate' type='text/html' href='https://megapahit.org/viewer.git/commit/?id=680934812598d2c9116303f3245e7a9d60ff58bf'/>
<id>urn:sha1:680934812598d2c9116303f3245e7a9d60ff58bf</id>
<content type='text'>
</content>
</entry>
<entry>
<title>BUILDFIX: converted platform-specific files over to new LL_INFOS, etc macros</title>
<updated>2013-08-15T04:58:30Z</updated>
<author>
<name>Richard Linden</name>
<email>none@none</email>
</author>
<published>2013-08-15T04:58:30Z</published>
<link rel='alternate' type='text/html' href='https://megapahit.org/viewer.git/commit/?id=d83c51a4e1923508e31f25576761f001d731ea93'/>
<id>urn:sha1:d83c51a4e1923508e31f25576761f001d731ea93</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Update Mac and Windows breakpad builds to latest</title>
<updated>2013-03-29T14:50:08Z</updated>
<author>
<name>Graham Madarasz</name>
<email>graham@lindenlab.com</email>
</author>
<published>2013-03-29T14:50:08Z</published>
<link rel='alternate' type='text/html' href='https://megapahit.org/viewer.git/commit/?id=bf6182daa8b4d7cea79310547f71d7a3155e17b0'/>
<id>urn:sha1:bf6182daa8b4d7cea79310547f71d7a3155e17b0</id>
<content type='text'>
</content>
</entry>
<entry>
<title>STORM-1482 The Viewer shouldn't overwrite the crash behavior settings, some cleanups to the crash reporters, and the ability to use --set GroupName.SettingName to set parameters outside of the (default) Global settings group.</title>
<updated>2011-07-12T22:48:02Z</updated>
<author>
<name>Aaron Stone</name>
<email>stone@lindenlab.com</email>
</author>
<published>2011-07-12T22:48:02Z</published>
<link rel='alternate' type='text/html' href='https://megapahit.org/viewer.git/commit/?id=42daa3497b6626cbb5f32ba54162558cd025069b'/>
<id>urn:sha1:42daa3497b6626cbb5f32ba54162558cd025069b</id>
<content type='text'>
</content>
</entry>
</feed>
