diff options
Diffstat (limited to 'mojo/message_pump/handle_watcher.h')
-rw-r--r-- | mojo/message_pump/handle_watcher.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mojo/message_pump/handle_watcher.h b/mojo/message_pump/handle_watcher.h index d855e45..18211ca 100644 --- a/mojo/message_pump/handle_watcher.h +++ b/mojo/message_pump/handle_watcher.h @@ -45,6 +45,8 @@ class MOJO_MESSAGE_PUMP_EXPORT HandleWatcher { // Stops listening. Does nothing if not in the process of listening. void Stop(); + bool is_watching() const { return !!state_; } + private: class StateBase; class SameThreadWatchingState; |