Assert successful return of PR_WaitCondVar, bug 785201. r=sstangl

This commit is contained in:
Brian Hackett 2012-08-23 17:40:38 -06:00
parent 32f5451274
commit fe7611778d

View File

@ -191,8 +191,10 @@ WorkerThreadState::wait(CondVar which, uint32_t millis)
#ifdef DEBUG #ifdef DEBUG
lockOwner = NULL; lockOwner = NULL;
#endif #endif
PR_WaitCondVar((which == MAIN) ? mainWakeup : helperWakeup, DebugOnly<PRStatus> status =
millis ? PR_MillisecondsToInterval(millis) : PR_INTERVAL_NO_TIMEOUT); PR_WaitCondVar((which == MAIN) ? mainWakeup : helperWakeup,
millis ? PR_MillisecondsToInterval(millis) : PR_INTERVAL_NO_TIMEOUT);
JS_ASSERT(status == PR_SUCCESS);
#ifdef DEBUG #ifdef DEBUG
lockOwner = PR_GetCurrentThread(); lockOwner = PR_GetCurrentThread();
#endif #endif