aboutsummaryrefslogtreecommitdiff
path: root/qemu-thread-win32.h
diff options
context:
space:
mode:
Diffstat (limited to 'qemu-thread-win32.h')
-rw-r--r--qemu-thread-win32.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/qemu-thread-win32.h b/qemu-thread-win32.h
new file mode 100644
index 0000000000..878f86a910
--- /dev/null
+++ b/qemu-thread-win32.h
@@ -0,0 +1,21 @@
+#ifndef __QEMU_THREAD_WIN32_H
+#define __QEMU_THREAD_WIN32_H 1
+#include "windows.h"
+
+struct QemuMutex {
+ CRITICAL_SECTION lock;
+ LONG owner;
+};
+
+struct QemuCond {
+ LONG waiters, target;
+ HANDLE sema;
+ HANDLE continue_event;
+};
+
+struct QemuThread {
+ HANDLE thread;
+ void *ret;
+};
+
+#endif