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

Unified Diff: base/synchronization/waitable_event.h

Issue 1446363003: Deleted OS_WIN and all Windows specific files from base. (Closed) Base URL: https://github.com/domokit/mojo.git@base_tests
Patch Set: Created 5 years, 1 month 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 | « base/synchronization/lock_impl_win.cc ('k') | base/synchronization/waitable_event_watcher.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
};
« no previous file with comments | « base/synchronization/lock_impl_win.cc ('k') | base/synchronization/waitable_event_watcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698