mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-03 22:38:41 +09:00
[XPCOM] xpcom/threads misc cleanup
This commit is contained in:
parent
94cafe3a4a
commit
7de4e86727
3 changed files with 24 additions and 11 deletions
|
|
@ -137,10 +137,15 @@ LazyIdleThread::EnsureThread()
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
MOZ_ASSERT(!mPendingEventCount, "Shouldn't have events yet!");
|
||||
MOZ_ASSERT(!mIdleNotificationCount, "Shouldn't have idle events yet!");
|
||||
MOZ_ASSERT(!mIdleTimer, "Should have killed this long ago!");
|
||||
MOZ_ASSERT(!mThreadIsShuttingDown, "Should have cleared that!");
|
||||
#ifdef DEBUG
|
||||
{ // Lock scope
|
||||
MutexAutoLock lock(mMutex);
|
||||
MOZ_ASSERT(!mPendingEventCount, "Shouldn't have events yet!");
|
||||
MOZ_ASSERT(!mIdleNotificationCount, "Shouldn't have idle events yet!");
|
||||
MOZ_ASSERT(!mIdleTimer, "Should have killed this long ago!");
|
||||
MOZ_ASSERT(!mThreadIsShuttingDown, "Should have cleared that!");
|
||||
}
|
||||
#endif
|
||||
|
||||
nsresult rv;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue