chatgui: add shutdown diagnostics — ~DbManager, ~SoundManager, g_shutdown_sentinel
Three diagnostic points covering the gap between ~MainWindow done and CRT exit: - DbManager: destroyed — confirms local dtors started after ~MainWindow - SoundManager: static destructor entered — confirms static destruction phase - main: static destructors done (g_shutdown_sentinel dtor) — confirms ALL statics done If process hangs, we know exactly which phase failed.
This commit is contained in:
1 parent
0d558245ce
commit
74c6b0d102
3 files changed
+14
-2
No files matched your search
@@ -10,7 +10,10 @@ SoundManager* SoundManager::instance() {
|
||||
return &s;
|
||||
}
|
||||
|
||||
SoundManager::~SoundManager() { shutdown(); }
|
||||
SoundManager::~SoundManager() {
|
||||
DEBUG_INFO(DEBUG_CATEGORY_DEBUG, "SoundManager: static destructor entered");
|
||||
shutdown();
|
||||
}
|
||||
|
||||
bool SoundManager::init() {
|
||||
if (m_initialized) return true;
|
||||
|
||||
Reference in new issue
Block a user