bug 857399 - remove assertion from cocoa FireAndWaitForTracerEvent. r=smichaud

This commit is contained in:
Ted Mielczarek 2013-04-19 11:45:01 -04:00
parent e86f739775
commit 34ee111db8

View File

@ -56,7 +56,12 @@ bool FireAndWaitForTracerEvent()
NS_ABORT_IF_FALSE(sMutex && sCondVar, "Tracing not initialized!");
NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init];
MutexAutoLock lock(*sMutex);
NS_ABORT_IF_FALSE(!sTracerProcessed, "Tracer synchronization state is wrong");
if (sTracerProcessed) {
// Things are out of sync. This is likely because we're in
// the middle of shutting down. Just return false and hope the
// tracer thread is quitting anyway.
return false;
}
// Post an application-defined event to the main thread's event queue
// and wait for it to get processed.