2007-12-17 Brent Fulgham <bfulgham@gmail.com>
[WebKit-https.git] / WebCore / platform / Threading.h
index 534e3f6773755a75b10b849d82e21851dd17f8a6..ddb38d1ff62bf8c76bd3e18c4b8c172ecabc44f6 100644 (file)
@@ -69,6 +69,19 @@ typedef GCond* PlatformCondition;
 #elif PLATFORM(QT)
 typedef QMutex* PlatformMutex;
 typedef QWaitCondition* PlatformCondition;
+#elif PLATFORM(WIN_OS)
+struct PlatformMutex {
+    CRITICAL_SECTION m_internalMutex;
+    size_t m_recursionCount;
+};
+struct PlatformCondition {
+    size_t m_timedOut;
+    size_t m_blocked;
+    size_t m_waitingForRemoval;
+    HANDLE m_gate;
+    HANDLE m_queue;
+    HANDLE m_mutex;
+};
 #else
 typedef void* PlatformMutex;
 typedef void* PlatformCondition;