зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1154802 - Tighten up some existing assertions. r=jww
This is a followup from bug 1154805
comment 13.
This commit is contained in:
Родитель
592239bbd9
Коммит
cb6c4a8c8a
|
@ -45,7 +45,7 @@ public:
|
|||
virtual bool IsCurrentThreadIn() override
|
||||
{
|
||||
bool in = NS_GetCurrentThread() == mTarget;
|
||||
MOZ_ASSERT_IF(in, GetCurrent() == this);
|
||||
MOZ_ASSERT(in == (GetCurrent() == this));
|
||||
return in;
|
||||
}
|
||||
|
||||
|
|
|
@ -220,7 +220,7 @@ bool
|
|||
MediaTaskQueue::IsCurrentThreadIn()
|
||||
{
|
||||
bool in = NS_GetCurrentThread() == mRunningThread;
|
||||
MOZ_ASSERT_IF(in, GetCurrent() == this);
|
||||
MOZ_ASSERT(in == (GetCurrent() == this));
|
||||
return in;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче