Index: base/waitable_event_watcher.h |
diff --git a/base/waitable_event_watcher.h b/base/waitable_event_watcher.h |
index 1b4994432987d77dcfdcaafb8b9844505959839a..94c3fdb599c4c798f1acc16623ddbae98c5da418 100644 |
--- a/base/waitable_event_watcher.h |
+++ b/base/waitable_event_watcher.h |
@@ -11,11 +11,11 @@ |
#include "base/object_watcher.h" |
#else |
#include "base/message_loop.h" |
+#include "base/waitable_event.h" |
#endif |
namespace base { |
-class WaitableEvent; |
class Flag; |
class AsyncWaiter; |
class AsyncCallbackTask; |
@@ -51,6 +51,9 @@ class AsyncCallbackTask; |
// occurs just before a WaitableEventWatcher is deleted. There is currently no |
// safe way to stop watching an automatic reset WaitableEvent without possibly |
// missing a signal. |
+// |
+// NOTE: you /are/ allowed to delete the WaitableEvent while still waiting on |
+// it with a Watcher. It will act as if the event was never signaled. |
// ----------------------------------------------------------------------------- |
class WaitableEventWatcher |
@@ -140,6 +143,7 @@ class WaitableEventWatcher |
scoped_refptr<Flag> cancel_flag_; |
AsyncWaiter* waiter_; |
AsyncCallbackTask* callback_task_; |
+ scoped_refptr<WaitableEvent::WaitableEventKernel> kernel_; |
#endif |
}; |