summaryrefslogtreecommitdiff
path: root/Source/WTF/wtf/threads/BinarySemaphore.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WTF/wtf/threads/BinarySemaphore.h')
-rw-r--r--Source/WTF/wtf/threads/BinarySemaphore.h13
1 files changed, 3 insertions, 10 deletions
diff --git a/Source/WTF/wtf/threads/BinarySemaphore.h b/Source/WTF/wtf/threads/BinarySemaphore.h
index cae10231b..bb00d776f 100644
--- a/Source/WTF/wtf/threads/BinarySemaphore.h
+++ b/Source/WTF/wtf/threads/BinarySemaphore.h
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2010, 2011 Apple Inc. All rights reserved.
+ * Copyright (C) 2010-2016 Apple Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -28,6 +28,7 @@
#include <wtf/Noncopyable.h>
#include <wtf/ThreadingPrimitives.h>
+#include <wtf/TimeWithDynamicClockType.h>
namespace WTF {
@@ -39,21 +40,13 @@ public:
WTF_EXPORT_PRIVATE ~BinarySemaphore();
WTF_EXPORT_PRIVATE void signal();
- WTF_EXPORT_PRIVATE bool wait(double absoluteTime);
-
-#if PLATFORM(WIN)
- HANDLE event() const { return m_event; }
-#endif
+ WTF_EXPORT_PRIVATE bool wait(TimeWithDynamicClockType);
private:
-#if PLATFORM(WIN)
- HANDLE m_event;
-#else
bool m_isSet;
Mutex m_mutex;
ThreadCondition m_condition;
-#endif
};
} // namespace WTF