Bug 1146471 - Release thread asserts for IPC (r=dvander)

This commit is contained in:
Bill McCloskey 2015-04-06 15:34:20 -07:00
parent aa4edaecad
commit 0ca4956fb8

View File

@ -414,7 +414,7 @@ class MessageChannel : HasResultCodes
// Can be run on either thread
void AssertWorkerThread() const
{
MOZ_ASSERT(mWorkerLoopID == MessageLoop::current()->id(),
MOZ_RELEASE_ASSERT(mWorkerLoopID == MessageLoop::current()->id(),
"not on worker thread!");
}
@ -423,7 +423,7 @@ class MessageChannel : HasResultCodes
// NOT our worker thread.
void AssertLinkThread() const
{
MOZ_ASSERT(mWorkerLoopID != MessageLoop::current()->id(),
MOZ_RELEASE_ASSERT(mWorkerLoopID != MessageLoop::current()->id(),
"on worker thread but should not be!");
}