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

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

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/simple_dispatcher.cc ('k') | mojo/edk/system/wait_set_dispatcher.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.h
diff --git a/mojo/edk/system/wait_set_dispatcher.h b/mojo/edk/system/wait_set_dispatcher.h
index d4f7cd55f26b87b61786a15d34ae5b0348a1ec01..4b7650d5f7239ebc231efc4c8ea4b39eed28cc6b 100644
--- a/mojo/edk/system/wait_set_dispatcher.h
+++ b/mojo/edk/system/wait_set_dispatcher.h
@@ -62,12 +62,7 @@ class WaitSetDispatcher final : public Dispatcher, public Awakable {
private:
// Represents an entry in the wait set.
struct Entry {
- enum class TriggerState {
- NOT_TRIGGERED,
- POSSIBLY_SATISFIED,
- NEVER_SATISFIABLE,
- CLOSED
- };
+ enum class TriggerState { NOT_TRIGGERED, SATISFIED, UNSATISFIABLE, CLOSED };
Entry(MojoHandleSignals signals, uint64_t cookie);
~Entry();
@@ -113,7 +108,7 @@ class WaitSetDispatcher final : public Dispatcher, public Awakable {
UserPointer<uint32_t> max_results) override;
// |Awakable| implementation:
- bool Awake(uint64_t context,
+ void Awake(uint64_t context,
AwakeReason reason,
const HandleSignalsState& signals_state) override;
« no previous file with comments | « mojo/edk/system/simple_dispatcher.cc ('k') | mojo/edk/system/wait_set_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698