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

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

Issue 2088833003: Add different behavior to AwakableList for "persistent" vs "one-shot" awakables. (Closed) Base URL: https://github.com/domokit/mojo.git@work793_wait_set_4.5
Patch Set: 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 | « mojo/edk/system/dispatcher.h ('k') | mojo/edk/system/local_message_pipe_endpoint.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/edk/system/dispatcher.cc
diff --git a/mojo/edk/system/dispatcher.cc b/mojo/edk/system/dispatcher.cc
index 02304bd64d53a03d7ebd13be9101a989d0725a22..dc62e0590e3d77d27f705b1cacc575507f743be7 100644
--- a/mojo/edk/system/dispatcher.cc
+++ b/mojo/edk/system/dispatcher.cc
@@ -307,7 +307,7 @@ HandleSignalsState Dispatcher::GetHandleSignalsState() const {
MojoResult Dispatcher::AddAwakable(Awakable* awakable,
uint64_t context,
- bool force,
+ bool persistent,
MojoHandleSignals signals,
HandleSignalsState* signals_state) {
MutexLocker locker(&mutex_);
@@ -317,7 +317,7 @@ MojoResult Dispatcher::AddAwakable(Awakable* awakable,
return MOJO_RESULT_INVALID_ARGUMENT;
}
- return AddAwakableImplNoLock(awakable, context, force, signals,
+ return AddAwakableImplNoLock(awakable, context, persistent, signals,
signals_state);
}
@@ -544,7 +544,7 @@ HandleSignalsState Dispatcher::GetHandleSignalsStateImplNoLock() const {
MojoResult Dispatcher::AddAwakableImplNoLock(
Awakable* /*awakable*/,
uint64_t /*context*/,
- bool /*force*/,
+ bool /*persistent*/,
MojoHandleSignals /*signals*/,
HandleSignalsState* signals_state) {
mutex_.AssertHeld();
« no previous file with comments | « mojo/edk/system/dispatcher.h ('k') | mojo/edk/system/local_message_pipe_endpoint.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698