mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-04 02:57:38 +00:00
Bug 1312080 - Repeated calls to BackgroundHangMonitor::NotifyWait shouldn't unnecessarily wake the BackgroundHangThread. r=billm
MozReview-Commit-ID: 5NLVIFJ9fmJ --HG-- extra : rebase_source : e5b6c0d9f1baa7c879cf2a4a60c149f09faa08ec
This commit is contained in:
parent
a0735c9169
commit
9205728a0e
@ -205,6 +205,11 @@ public:
|
||||
void NotifyWait()
|
||||
{
|
||||
MonitorAutoLock autoLock(mManager->mLock);
|
||||
|
||||
if (mWaiting) {
|
||||
return;
|
||||
}
|
||||
|
||||
Update();
|
||||
mWaiting = true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user