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

Unified Diff: mojo/message_pump/message_pump_mojo.h

Issue 1467953002: Implement MessagePumpMojo using WaitSet. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mojo-waitset-implementation
Patch Set: Rebase. Created 5 years 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/message_pump/message_pump_mojo.cc » ('j') | mojo/message_pump/message_pump_mojo.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/message_pump/message_pump_mojo.h
diff --git a/mojo/message_pump/message_pump_mojo.h b/mojo/message_pump/message_pump_mojo.h
index 4dc0c2238f6e1d0f195f52f79f3210f05ea5447f..4bc07072408d626cebadc1c046675d2d80f0dfbb 100644
--- a/mojo/message_pump/message_pump_mojo.h
+++ b/mojo/message_pump/message_pump_mojo.h
@@ -69,7 +69,6 @@ class MOJO_MESSAGE_PUMP_EXPORT MessagePumpMojo : public base::MessagePump {
private:
struct RunState;
- struct WaitState;
// Contains the data needed to track a request to AddHandler().
struct Handler {
@@ -94,17 +93,15 @@ class MOJO_MESSAGE_PUMP_EXPORT MessagePumpMojo : public base::MessagePump {
// Removes the given invalid handle. This is called if MojoWaitMany finds an
// invalid handle.
- void RemoveInvalidHandle(const WaitState& wait_state,
- MojoResult result,
- uint32_t result_index);
+ void RemoveInvalidHandle(MojoResult result, Handle handle);
void SignalControlPipe();
- WaitState GetWaitState() const;
-
// Returns the deadline for the call to MojoWaitMany().
MojoDeadline GetDeadlineForWait(const RunState& run_state) const;
+ void SignalHandleReady(Handle handle);
+
void WillSignalHandler();
void DidSignalHandler();
@@ -132,6 +129,8 @@ class MOJO_MESSAGE_PUMP_EXPORT MessagePumpMojo : public base::MessagePump {
base::ObserverList<Observer> observers_;
+ // Mojo handle for the wait set.
+ ScopedHandle wait_set_handle_;
// Used to wake up run loop from |SignalControlPipe()|.
ScopedMessagePipeHandle read_handle_;
ScopedMessagePipeHandle write_handle_;
« no previous file with comments | « no previous file | mojo/message_pump/message_pump_mojo.cc » ('j') | mojo/message_pump/message_pump_mojo.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698