Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(184)

Unified Diff: mojo/edk/system/wait_set_dispatcher.cc

Issue 2096683003: Add yet another threaded test of WaitSetDispatcher. (Closed) Base URL: https://github.com/domokit/mojo.git@work792_wait_set_5.2-x-work791_wait_set_5.1-x-work790_wait_set_5
Patch Set: improve test and fix bug Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | mojo/edk/system/wait_set_dispatcher_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/edk/system/wait_set_dispatcher.cc
diff --git a/mojo/edk/system/wait_set_dispatcher.cc b/mojo/edk/system/wait_set_dispatcher.cc
index cfd911f905845af1e4de39b153a7facec0b3ce0e..a807ce2e871bbd910973e8b577d8b785e1d8189d 100644
--- a/mojo/edk/system/wait_set_dispatcher.cc
+++ b/mojo/edk/system/wait_set_dispatcher.cc
@@ -119,7 +119,7 @@ void WaitSetDispatcher::CloseImplNoLock() {
triggered_tail_ = nullptr;
triggered_count_ = 0u;
- cv_.Signal();
+ cv_.SignalAll();
// We want to remove the awakables outside the lock, so we have to unlock
// |mutex()|. Note that while unlocked, |Awake()| may get called.
@@ -425,7 +425,7 @@ void WaitSetDispatcher::AddTriggeredNoLock(Entry* entry) {
entry->is_triggered = true;
if (!triggered_count_)
- cv_.Signal();
+ cv_.SignalAll();
triggered_count_++;
if (!triggered_tail_) {
« no previous file with comments | « no previous file | mojo/edk/system/wait_set_dispatcher_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698