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

Unified Diff: mojo/common/handle_watcher.h

Issue 409943003: Makes HandleWatcher block until no longer waiting on pipe (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: more java fixes Created 6 years, 5 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
Index: mojo/common/handle_watcher.h
diff --git a/mojo/common/handle_watcher.h b/mojo/common/handle_watcher.h
index 9fac3f51edc189ce60acf2b20c2b1e9c4ed95a5c..f40ae88b42633c2eba97c56dc7ccd0d73a1188d3 100644
--- a/mojo/common/handle_watcher.h
+++ b/mojo/common/handle_watcher.h
@@ -27,6 +27,8 @@ class HandleWatcherTest;
class MOJO_COMMON_EXPORT HandleWatcher {
public:
HandleWatcher();
+
+ // The destructor implicitly stops listening. See Stop() for details.
~HandleWatcher();
// Starts listening for |handle|. This implicitly invokes Stop(). In other
@@ -41,7 +43,8 @@ class MOJO_COMMON_EXPORT HandleWatcher {
MojoDeadline deadline,
const base::Callback<void(MojoResult)>& callback);
- // Stops listening. Does nothing if not in the process of listening.
+ // Stops listening. Does nothing if not in the process of listening. Blocks
+ // until no longer listening on the handle.
void Stop();
private:

Powered by Google App Engine
This is Rietveld 408576698