diff options
Diffstat (limited to 'Source/WTF/wtf/threads/BinarySemaphore.h')
-rw-r--r-- | Source/WTF/wtf/threads/BinarySemaphore.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/WTF/wtf/threads/BinarySemaphore.h b/Source/WTF/wtf/threads/BinarySemaphore.h index b5db5d7ad..9585dc978 100644 --- a/Source/WTF/wtf/threads/BinarySemaphore.h +++ b/Source/WTF/wtf/threads/BinarySemaphore.h @@ -41,11 +41,19 @@ public: WTF_EXPORT_PRIVATE void signal(); WTF_EXPORT_PRIVATE bool wait(double absoluteTime); +#if PLATFORM(WIN) || (PLATFORM(QT) && OS(WINDOWS)) + HANDLE event() const { return m_event; } +#endif + private: +#if PLATFORM(WIN) || (PLATFORM(QT) && OS(WINDOWS)) + HANDLE m_event; +#else bool m_isSet; Mutex m_mutex; ThreadCondition m_condition; +#endif }; } // namespace WTF |