phoenix-firestorm/indra
Nat Goodspeed 47ec6ab3be SL-11216: Remove LLSingletonBase::cleanupAll().
Remove call from LLAppViewer::cleanup().

Instead, make each LLSingleton<T>::deleteSingleton() call cleanupSingleton()
just before destroying the instance. Since deleteSingleton() is not a
destructor, it's fine to call cleanupSingleton() from there; and since
deleteAll() calls deleteSingleton() on every remaining instance, the former
cleanupAll() functionality has been subsumed into deleteAll().

Since cleanupSingleton() is now called at exactly one point in the instance's
lifetime, we no longer need a bool indicating whether it has been called.

The previous protocol of calling cleanupAll() before deleteAll() implemented a
two-phase cleanup strategy for the application. That is no longer needed.
Moreover, the cleanupAll() / deleteAll() sequence created a time window during
which individual LLSingleton<T> instances weren't usable (to the extent that
their cleanupSingleton() methods released essential resources) but still
existed -- so a getInstance() call would return the crippled instance rather
than recreating it.

Remove cleanupAll() calls from tests; adjust to new order of expected side
effects: instead of A::cleanupSingleton(), B::cleanupSingleton(), ~A(), ~B(),
now we get A::cleanupSingleton(), ~A(), B::cleanupSingleton(), ~B().
2020-03-25 16:01:31 -04:00
..
cmake DRTVWR-494: Show copy-paste-friendly env vars and test command. 2020-03-25 15:28:17 -04:00
copy_win_scripts
doxygen
integration_tests
lib/python/indra
linux_crash_logger
llappearance
llaudio
llcharacter
llcommon SL-11216: Remove LLSingletonBase::cleanupAll(). 2020-03-25 16:01:31 -04:00
llcorehttp DRTVWR-494: Use std:🧵:id for LLThread::currentID(). 2020-03-25 15:28:17 -04:00
llcrashlogger
llimage
llimagej2coj
llinventory
llkdu DRTVWR-494: Put streaming operator<<() for kdu_dims in kdu_core. 2020-03-25 15:28:17 -04:00
llmath
llmessage DRTVWR-494: Use std:🧵:id for LLThread::currentID(). 2020-03-25 15:28:17 -04:00
llplugin DRTVWR-494: Use std:🧵:id for LLThread::currentID(). 2020-03-25 15:28:17 -04:00
llprimitive
llrender DRTVWR-494: Defend LLInstanceTracker against multi-thread usage. 2020-03-25 15:28:17 -04:00
llui DRTVWR-494: Defend LLInstanceTracker against multi-thread usage. 2020-03-25 15:28:17 -04:00
llvfs DRTVWR-494: Use std:🧵:id for LLThread::currentID(). 2020-03-25 15:28:17 -04:00
llwindow DRTVWR-494: Avoid keeping iterator to destroyed temporary container. 2020-03-25 15:28:17 -04:00
llxml DRTVWR-494: Defend LLInstanceTracker against multi-thread usage. 2020-03-25 15:28:17 -04:00
mac_crash_logger
media_plugins DRTVWR-494: Fix Windows macro collisions in windows_volume_catcher 2020-03-25 15:28:17 -04:00
newview SL-11216: Remove LLSingletonBase::cleanupAll(). 2020-03-25 16:01:31 -04:00
test
tools/vstool
viewer_components
win_crash_logger
CMakeLists.txt
edit-me-to-trigger-new-build.txt SL-12587 - trigger build update 2020-01-17 17:32:29 +00:00
fix-incredibuild.py