Skip to content

Commit

Permalink
Bug 1805820 - Hold the outer lock when notifying outerMonitor in Time…
Browse files Browse the repository at this point in the history
…rFiresBeforeRunnableRuns test, r=emilio

Differential Revision: https://phabricator.services.mozilla.com/D176076
  • Loading branch information
mystor committed Apr 21, 2023
1 parent 9345673 commit b602da3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions xpcom/tests/gtest/TestDelayedRunnable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ TEST(DelayedRunnable, TimerFiresBeforeRunnableRuns)
// we leave scope.
innerMonitor.Wait();
// Notify the outer monitor that we've finished the async steps.
MonitorAutoLock outerLock(outerMonitor);
outerMonitor.NotifyAll();
})));
// Wait for async steps before wrapping up the test case.
Expand Down

0 comments on commit b602da3

Please sign in to comment.