]> git.proxmox.com Git - mirror_qemu.git/blobdiff - include/qemu/thread-win32.h
util/uri: Remove uri_string_unescape()
[mirror_qemu.git] / include / qemu / thread-win32.h
index 3d58081bed77dd1a65a3869f8e8645e432e189fc..d95af4498fc9e74bab49b2fab3bbfb12e7b8edfa 100644 (file)
@@ -1,24 +1,37 @@
-#ifndef __QEMU_THREAD_WIN32_H
-#define __QEMU_THREAD_WIN32_H 1
-#include "windows.h"
+#ifndef QEMU_THREAD_WIN32_H
+#define QEMU_THREAD_WIN32_H
+
+#include <windows.h>
 
 struct QemuMutex {
+    SRWLOCK lock;
+#ifdef CONFIG_DEBUG_MUTEX
+    const char *file;
+    int line;
+#endif
+    bool initialized;
+};
+
+typedef struct QemuRecMutex QemuRecMutex;
+struct QemuRecMutex {
     CRITICAL_SECTION lock;
-    LONG owner;
+    bool initialized;
 };
 
 struct QemuCond {
-    LONG waiters, target;
-    HANDLE sema;
-    HANDLE continue_event;
+    CONDITION_VARIABLE var;
+    bool initialized;
 };
 
 struct QemuSemaphore {
     HANDLE sema;
+    bool initialized;
 };
 
 struct QemuEvent {
+    int value;
     HANDLE event;
+    bool initialized;
 };
 
 typedef struct QemuThreadData QemuThreadData;
@@ -28,6 +41,6 @@ struct QemuThread {
 };
 
 /* Only valid for joinable threads.  */
-HANDLE qemu_thread_get_handle(QemuThread *thread);
+HANDLE qemu_thread_get_handle(struct QemuThread *thread);
 
 #endif