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

Unified Diff: base/waitable_event_watcher.h

Issue 271033: Multiple sync channels if used in the same listener thread could result in ca... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 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 | « no previous file | base/waitable_event_watcher_posix.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/waitable_event_watcher.h
===================================================================
--- base/waitable_event_watcher.h (revision 28676)
+++ base/waitable_event_watcher.h (working copy)
@@ -106,6 +106,13 @@
// ---------------------------------------------------------------------------
WaitableEvent* GetWatchedEvent();
+ // ---------------------------------------------------------------------------
+ // Return the delegate, or NULL if there is no delegate.
+ // ---------------------------------------------------------------------------
+ Delegate* delegate() {
+ return delegate_;
+ }
+
private:
WaitableEvent* event_;
@@ -131,7 +138,6 @@
void OnObjectSignaled();
- Delegate* delegate_;
ObjectWatcherHelper helper_;
ObjectWatcher watcher_;
#else
@@ -146,6 +152,8 @@
AsyncCallbackTask* callback_task_;
scoped_refptr<WaitableEvent::WaitableEventKernel> kernel_;
#endif
+
+ Delegate* delegate_;
};
} // namespace base
« no previous file with comments | « no previous file | base/waitable_event_watcher_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698