mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-14 12:43:40 +02:00
Flush CValidationInterface callbacks prior to destruction
Note that the CScheduler thread cant be running at this point, it has already been stopped with the rest of the init threadgroup. Thus, just calling any remaining loose callbacks during Shutdown() is sane.
This commit is contained in:
parent
08096bbbc6
commit
3192975f1d
6 changed files with 32 additions and 0 deletions
|
|
@ -44,6 +44,10 @@ void CMainSignals::UnregisterBackgroundSignalScheduler() {
|
|||
m_internals.reset(nullptr);
|
||||
}
|
||||
|
||||
void CMainSignals::FlushBackgroundCallbacks() {
|
||||
m_internals->m_schedulerClient.EmptyQueue();
|
||||
}
|
||||
|
||||
CMainSignals& GetMainSignals()
|
||||
{
|
||||
return g_signals;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue