Index: base/synchronization/waitable_event.h |
diff --git a/base/synchronization/waitable_event.h b/base/synchronization/waitable_event.h |
index c35af5467f62aa84b39ad80b7700a663fd8a142e..a3b30af47dd909c1099c6ce19c958adeb5bbb41d 100644 |
--- a/base/synchronization/waitable_event.h |
+++ b/base/synchronization/waitable_event.h |
@@ -8,10 +8,6 @@ |
#include "base/base_export.h" |
#include "base/basictypes.h" |
-#if defined(OS_WIN) |
-#include "base/win/scoped_handle.h" |
-#endif |
- |
#if defined(OS_POSIX) |
#include <list> |
#include <utility> |
@@ -46,13 +42,6 @@ class BASE_EXPORT WaitableEvent { |
// waiting thread has been released. |
WaitableEvent(bool manual_reset, bool initially_signaled); |
-#if defined(OS_WIN) |
- // Create a WaitableEvent from an Event HANDLE which has already been |
- // created. This objects takes ownership of the HANDLE and will close it when |
- // deleted. |
- explicit WaitableEvent(win::ScopedHandle event_handle); |
-#endif |
- |
~WaitableEvent(); |
// Put the event in the un-signaled state. |
@@ -83,10 +72,6 @@ class BASE_EXPORT WaitableEvent { |
// TimedWait can synchronise its own destruction like |Wait|. |
bool TimedWait(const TimeDelta& max_time); |
-#if defined(OS_WIN) |
- HANDLE handle() const { return handle_.Get(); } |
-#endif |
- |
// Wait, synchronously, on multiple events. |
// waitables: an array of WaitableEvent pointers |
// count: the number of elements in @waitables |
@@ -133,9 +118,6 @@ class BASE_EXPORT WaitableEvent { |
private: |
friend class WaitableEventWatcher; |
-#if defined(OS_WIN) |
- win::ScopedHandle handle_; |
-#else |
// On Windows, one can close a HANDLE which is currently being waited on. The |
// MSDN documentation says that the resulting behaviour is 'undefined', but |
// it doesn't crash. However, if we were to include the following members |
@@ -176,7 +158,6 @@ class BASE_EXPORT WaitableEvent { |
void Enqueue(Waiter* waiter); |
scoped_refptr<WaitableEventKernel> kernel_; |
-#endif |
DISALLOW_COPY_AND_ASSIGN(WaitableEvent); |
}; |