mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 766883 - Don't abort during shutdown when SignalTracerThread is called twice before FireAndWaitForTracerEvent notices; r=ted DONTBUILD
CLOSED TREE
This commit is contained in:
parent
4e06d10e6f
commit
89d149fbcf
@ -44,9 +44,10 @@ void SignalTracerThread()
|
||||
if (!sMutex || !sCondVar)
|
||||
return;
|
||||
MutexAutoLock lock(*sMutex);
|
||||
NS_ABORT_IF_FALSE(!sTracerProcessed, "Tracer synchronization state is wrong");
|
||||
if (!sTracerProcessed) {
|
||||
sTracerProcessed = true;
|
||||
sCondVar->Notify();
|
||||
}
|
||||
}
|
||||
|
||||
// This function is called from the background tracer thread.
|
||||
|
@ -69,9 +69,10 @@ void SignalTracerThread()
|
||||
if (!sMutex || !sCondVar)
|
||||
return;
|
||||
MutexAutoLock lock(*sMutex);
|
||||
NS_ABORT_IF_FALSE(!sTracerProcessed, "Tracer synchronization state is wrong");
|
||||
if (!sTracerProcessed) {
|
||||
sTracerProcessed = true;
|
||||
sCondVar->Notify();
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace mozilla
|
||||
|
Loading…
Reference in New Issue
Block a user