Bug 730282 - Firefox crash @ mozilla::SignalTracerThread. r=ted.mielczarek.

This commit is contained in:
Steven Michaud 2012-03-12 15:13:14 -05:00
parent 470501aa0d
commit f486e3b94a
3 changed files with 5 additions and 0 deletions

View File

@ -74,6 +74,8 @@ void CleanUpWidgetTracing()
// This function is called from the main (UI) thread.
void SignalTracerThread()
{
if (!sMutex || !sCondVar)
return;
MutexAutoLock lock(*sMutex);
NS_ABORT_IF_FALSE(!sTracerProcessed, "Tracer synchronization state is wrong");
sTracerProcessed = true;

View File

@ -99,6 +99,8 @@ bool FireAndWaitForTracerEvent()
void SignalTracerThread()
{
if (!sMutex || !sCondVar)
return;
MutexAutoLock lock(*sMutex);
NS_ABORT_IF_FALSE(!sTracerProcessed, "Tracer synchronization state is wrong");
sTracerProcessed = true;

View File

@ -125,6 +125,7 @@ bool InitWidgetTracing()
void CleanUpWidgetTracing()
{
CloseHandle(sEventHandle);
sEventHandle = NULL;
}
// This function is called from the main (UI) thread.