<feed xmlns='http://www.w3.org/2005/Atom'>
<title>viewer.git/indra/mac_crash_logger/mac_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>2021-04-26T17:31:32Z</updated>
<entry>
<title>SL-15170 remove mac_crash_logger</title>
<updated>2021-04-26T17:31:32Z</updated>
<author>
<name>Mnikolenko ProductEngine</name>
<email>mnikolenko@productengine.com</email>
</author>
<published>2021-04-26T16:12:49Z</published>
<link rel='alternate' type='text/html' href='https://megapahit.org/viewer.git/commit/?id=430661f1351b177355de7f2a993f6e34c835f939'/>
<id>urn:sha1:430661f1351b177355de7f2a993f6e34c835f939</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Revert "Merge branch 'master' of https://bitbucket.org/lindenlab/viewer into DRTVWR-519"</title>
<updated>2021-03-08T13:56:16Z</updated>
<author>
<name>Brad Payne (Vir Linden)</name>
<email>vir@lindenlab.com</email>
</author>
<published>2021-03-08T13:56:16Z</published>
<link rel='alternate' type='text/html' href='https://megapahit.org/viewer.git/commit/?id=c83e740ef94e16ba85574454f3138905edecb029'/>
<id>urn:sha1:c83e740ef94e16ba85574454f3138905edecb029</id>
<content type='text'>
This reverts commit e61f485a04dc8c8ac6bcf6a24848359092884d14, reversing
changes made to 00c47d079f7e958e473ed4083a7f7691fa02dcd5.
</content>
</entry>
<entry>
<title>mac build fix</title>
<updated>2020-09-17T12:10:03Z</updated>
<author>
<name>Mnikolenko ProductEngine</name>
<email>mnikolenko@productengine.com</email>
</author>
<published>2020-09-17T12:10:03Z</published>
<link rel='alternate' type='text/html' href='https://megapahit.org/viewer.git/commit/?id=20b50f99c89271518ae37ade0ef0866167070c80'/>
<id>urn:sha1:20b50f99c89271518ae37ade0ef0866167070c80</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>add logging around crash reporting, with minor code cleanups</title>
<updated>2016-04-13T18:41:38Z</updated>
<author>
<name>Oz Linden</name>
<email>oz@lindenlab.com</email>
</author>
<published>2016-04-13T18:41:38Z</published>
<link rel='alternate' type='text/html' href='https://megapahit.org/viewer.git/commit/?id=57488bc3812d9d308cc9e869c2088ba8212bc851'/>
<id>urn:sha1:57488bc3812d9d308cc9e869c2088ba8212bc851</id>
<content type='text'>
</content>
</entry>
<entry>
<title>merge changes for MAINT-5974</title>
<updated>2016-04-08T15:32:48Z</updated>
<author>
<name>Oz Linden</name>
<email>oz@lindenlab.com</email>
</author>
<published>2016-04-08T15:32:48Z</published>
<link rel='alternate' type='text/html' href='https://megapahit.org/viewer.git/commit/?id=ed38b5c9235b35cc4aa7448be2897c5fffbc684e'/>
<id>urn:sha1:ed38b5c9235b35cc4aa7448be2897c5fffbc684e</id>
<content type='text'>
</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>maint-5422 changes and merge from release</title>
<updated>2015-09-16T21:21:03Z</updated>
<author>
<name>Glenn Glazer</name>
<email>coyot@lindenlab.com</email>
</author>
<published>2015-09-16T21:21:03Z</published>
<link rel='alternate' type='text/html' href='https://megapahit.org/viewer.git/commit/?id=b09f0a120e53c8b27d196df6a33a42c9ac0e146c'/>
<id>urn:sha1:b09f0a120e53c8b27d196df6a33a42c9ac0e146c</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>
</feed>
