<feed xmlns='http://www.w3.org/2005/Atom'>
<title>viewer.git/indra/llcommon/llthread.h, branch cef_147</title>
<subtitle>Megapahit's fork of the Second Life viewer.
</subtitle>
<id>https://megapahit.org/viewer.git/atom?h=cef_147</id>
<link rel='self' href='https://megapahit.org/viewer.git/atom?h=cef_147'/>
<link rel='alternate' type='text/html' href='https://megapahit.org/viewer.git/'/>
<updated>2025-07-07T21:00:14Z</updated>
<entry>
<title>#4319 Thread crashes not being reported to bugsplat</title>
<updated>2025-07-07T21:00:14Z</updated>
<author>
<name>Andrey Kleshchev</name>
<email>andreykproductengine@lindenlab.com</email>
</author>
<published>2025-07-07T18:25:35Z</published>
<link rel='alternate' type='text/html' href='https://megapahit.org/viewer.git/commit/?id=6e65c3821e852dd923df18efc1d02c70b42692f6'/>
<id>urn:sha1:6e65c3821e852dd923df18efc1d02c70b42692f6</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Reduce memory allocations pinging the mainloop timeout</title>
<updated>2025-04-18T20:09:51Z</updated>
<author>
<name>Ansariel</name>
<email>ansariel.hiller@phoenixviewer.com</email>
</author>
<published>2024-09-24T00:59:48Z</published>
<link rel='alternate' type='text/html' href='https://megapahit.org/viewer.git/commit/?id=d6b8628a4f85bd95863f9d5228e1210d483b2ce8'/>
<id>urn:sha1:d6b8628a4f85bd95863f9d5228e1210d483b2ce8</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Post-merge - trim trailing whitespace</title>
<updated>2024-06-10T17:45:59Z</updated>
<author>
<name>Andrey Lihatskiy</name>
<email>alihatskiy@productengine.com</email>
</author>
<published>2024-06-10T17:42:42Z</published>
<link rel='alternate' type='text/html' href='https://megapahit.org/viewer.git/commit/?id=c95b4bf3ea2b681d6d05468b07e60fedb71fa2cf'/>
<id>urn:sha1:c95b4bf3ea2b681d6d05468b07e60fedb71fa2cf</id>
<content type='text'>
</content>
</entry>
<entry>
<title>secondlife/viewer#1333 BOOL to bool conversion leftovers: ternaries</title>
<updated>2024-05-07T08:18:51Z</updated>
<author>
<name>Alexander Gavriliuk</name>
<email>alexandrgproductengine@lindenlab.com</email>
</author>
<published>2024-05-06T14:52:34Z</published>
<link rel='alternate' type='text/html' href='https://megapahit.org/viewer.git/commit/?id=f9473e8afcb624cc1b101195bf15943ec372b56f'/>
<id>urn:sha1:f9473e8afcb624cc1b101195bf15943ec372b56f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Merge branch 'main' of https://github.com/secondlife/viewer into DRTVWR-600-maint-A</title>
<updated>2024-04-11T19:59:38Z</updated>
<author>
<name>Ansariel</name>
<email>ansariel.hiller@phoenixviewer.com</email>
</author>
<published>2024-04-11T19:59:38Z</published>
<link rel='alternate' type='text/html' href='https://megapahit.org/viewer.git/commit/?id=d0102af56d3b1d5b1d9bf3c8eb9aeea77028b70e'/>
<id>urn:sha1:d0102af56d3b1d5b1d9bf3c8eb9aeea77028b70e</id>
<content type='text'>
# Conflicts:
#	indra/llcommon/llapp.cpp
#	indra/llcommon/llapp.h
#	indra/llimage/llimageworker.cpp
#	indra/llui/llcontainerview.cpp
#	indra/llui/llcontainerview.h
#	indra/llui/llkeywords.cpp
#	indra/llui/lltabcontainer.cpp
#	indra/llui/lltextbase.cpp
#	indra/newview/llappviewer.cpp
#	indra/newview/llfavoritesbar.cpp
#	indra/newview/llfavoritesbar.h
#	indra/newview/llfloaterimnearbychathandler.cpp
#	indra/newview/llfloaterpreference.cpp
#	indra/newview/llhudnametag.h
#	indra/newview/llinventorypanel.cpp
#	indra/newview/llinventorypanel.h
#	indra/newview/llmeshrepository.cpp
#	indra/newview/lloutfitgallery.cpp
#	indra/newview/lloutfitslist.cpp
#	indra/newview/llpaneleditwearable.cpp
#	indra/newview/llpanelprofilepicks.cpp
#	indra/newview/llpanelvoicedevicesettings.h
#	indra/newview/llpreviewscript.cpp
#	indra/newview/llpreviewscript.h
#	indra/newview/llselectmgr.cpp
#	indra/newview/lltranslate.cpp
#	indra/newview/llviewerassetupload.cpp
#	indra/newview/llviewermessage.cpp
</content>
</entry>
<entry>
<title>llcommon: BOOL (int) to real bool/LSTATUS</title>
<updated>2024-02-08T23:02:29Z</updated>
<author>
<name>Lars Næsbye Christensen</name>
<email>lars@naesbye.dk</email>
</author>
<published>2024-02-08T01:51:51Z</published>
<link rel='alternate' type='text/html' href='https://megapahit.org/viewer.git/commit/?id=ba4e7b989b6c20a49da0eeb450bd2f945b3eefc6'/>
<id>urn:sha1:ba4e7b989b6c20a49da0eeb450bd2f945b3eefc6</id>
<content type='text'>
</content>
</entry>
<entry>
<title>SL-20546: Defend llrand's random generator against concurrent access</title>
<updated>2023-11-17T19:31:21Z</updated>
<author>
<name>Nat Goodspeed</name>
<email>nat@lindenlab.com</email>
</author>
<published>2023-11-17T19:31:21Z</published>
<link rel='alternate' type='text/html' href='https://megapahit.org/viewer.git/commit/?id=5fa7f69101a889009194eeddb927599d7536613f'/>
<id>urn:sha1:5fa7f69101a889009194eeddb927599d7536613f</id>
<content type='text'>
by making it thread_local.
</content>
</entry>
<entry>
<title>SL-15200: Add LLApp::sleep(duration) methods.</title>
<updated>2021-05-17T17:37:13Z</updated>
<author>
<name>Nat Goodspeed</name>
<email>nat@lindenlab.com</email>
</author>
<published>2021-05-17T17:37:13Z</published>
<link rel='alternate' type='text/html' href='https://megapahit.org/viewer.git/commit/?id=d313d7021ff551f2a5ef7ec54ff2b3234d96017b'/>
<id>urn:sha1:d313d7021ff551f2a5ef7ec54ff2b3234d96017b</id>
<content type='text'>
Two sleep() methods: one accepting F32Milliseconds, or in general any LLUnits
time class; the other accepting any std::chrono::duration.

The significant thing about each of these sleep() methods, as opposed to any
freestanding sleep() function, is that it only sleeps until the app starts
shutdown. Moreover, it returns true if it slept for the whole specified
duration, false if it woke for app shutdown.

This is accomplished by making LLApp::sStatus be an LLScalarCond&lt;EAppStatus&gt;
instead of a plain EAppStatus enum, and by making setStatus() call set_all()
each time the value changes. Then each new sleep() method can call
wait_for_unequal(duration, APP_STATUS_RUNNING).

Introducing llcond.h into llapp.h triggered an #include circularity because
llthread.h #included llapp.h even though it didn't reference anything from it.
Removed. This, in turn, necessitated adding #include "llapp.h" to several .cpp
files that reference LLApp but had been depending on other header files to
drag in llapp.h.
</content>
</entry>
<entry>
<title>DRTVWR-494: Use std::thread::id for LLThread::currentID().</title>
<updated>2020-03-25T19:28:17Z</updated>
<author>
<name>Nat Goodspeed</name>
<email>nat@lindenlab.com</email>
</author>
<published>2019-12-06T21:31:49Z</published>
<link rel='alternate' type='text/html' href='https://megapahit.org/viewer.git/commit/?id=5e7df752a66b2082d063d2c4a10bc7013d479f55'/>
<id>urn:sha1:5e7df752a66b2082d063d2c4a10bc7013d479f55</id>
<content type='text'>
LLThread::currentID() used to return a U32, a distinct unsigned value
incremented by explicitly constructing LLThread or by calling LLThread::
registerThreadID() early in a thread launched by other means. The latter
imposed an unobvious requirement on new code based on std::thread. Using
std::thread::id instead delegates to the compiler/library the problem of
distinguishing threads launched by any means.

Change lots of explicit U32 declarations. Introduce LLThread::id_t typedef to
avoid having to run around fixing uses again if we later revisit this decision.

LLMutex, which stores an LLThread::id_t, wants a distinguished value meaning
NO_THREAD, and had an enum with that name. But as std::thread::id promises
that the default-constructed value is distinct from every valid value,
NO_THREAD becomes unnecessary and goes away.

Because LLMutex now stores LLThread::id_t instead of U32, make llmutex.h
#include "llthread.h" instead of the other way around. This makes LLMutex an
incomplete type within llthread.h, so move LLThread::lockData() and
unlockData() to the .cpp file. Similarly, remove llrefcount.h's #include
"llmutex.h" to break circularity; instead forward-declare LLMutex.

It turns out that a number of source files assumed that #include "llthread.h"
would get the definition for LLMutex. Sprinkle #include "llmutex.h" as needed.

In the SAFE_SSL code in llcorehttp/httpcommon.cpp, there's an ssl_thread_id()
callback that returns an unsigned long to the SSL library. When LLThread::
currentID() was U32, we could simply return that. But std::thread::id is very
deliberately opaque, and can't be reinterpret_cast to unsigned long.
Fortunately it can be hashed because std::hash is specialized with that type.
</content>
</entry>
<entry>
<title>DRTVWR-494: Add on_main_thread(), sibling to assert_main_thread().</title>
<updated>2020-03-25T19:28:17Z</updated>
<author>
<name>Nat Goodspeed</name>
<email>nat@lindenlab.com</email>
</author>
<published>2019-12-03T16:33:55Z</published>
<link rel='alternate' type='text/html' href='https://megapahit.org/viewer.git/commit/?id=7a09a5391ac5172470eb6597f08b24cd5965e9ac'/>
<id>urn:sha1:7a09a5391ac5172470eb6597f08b24cd5965e9ac</id>
<content type='text'>
</content>
</entry>
</feed>
