virtio-serial-bus: post_load send_event when vm is running
[qemu/agraf.git] / qemu-thread-win32.h
blob13adb958f04804e3712d1b56439c181d3bfed962
1 #ifndef __QEMU_THREAD_WIN32_H
2 #define __QEMU_THREAD_WIN32_H 1
3 #include "windows.h"
5 struct QemuMutex {
6 CRITICAL_SECTION lock;
7 LONG owner;
8 };
10 struct QemuCond {
11 LONG waiters, target;
12 HANDLE sema;
13 HANDLE continue_event;
16 struct QemuSemaphore {
17 HANDLE sema;
20 typedef struct QemuThreadData QemuThreadData;
21 struct QemuThread {
22 QemuThreadData *data;
23 unsigned tid;
26 /* Only valid for joinable threads. */
27 HANDLE qemu_thread_get_handle(QemuThread *thread);
29 #endif