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,8 +414,8 @@ class MessageChannel : HasResultCodes
// Can be run on either thread
void AssertWorkerThread() const
{
MOZ_ASSERT(mWorkerLoopID == MessageLoop::current()->id(),
"not on worker thread!");
MOZ_RELEASE_ASSERT(mWorkerLoopID == MessageLoop::current()->id(),
"not on worker thread!");
}
// The "link" thread is either the I/O thread (ProcessLink) or the
@ -423,8 +423,8 @@ class MessageChannel : HasResultCodes
// NOT our worker thread.
void AssertLinkThread() const
{
MOZ_ASSERT(mWorkerLoopID != MessageLoop::current()->id(),
"on worker thread but should not be!");
MOZ_RELEASE_ASSERT(mWorkerLoopID != MessageLoop::current()->id(),
"on worker thread but should not be!");
}
private: