1 #ifndef QEMU_THREAD_WIN32_H
2 #define QEMU_THREAD_WIN32_H
8 #ifdef CONFIG_DEBUG_MUTEX
15 typedef struct QemuRecMutex QemuRecMutex
;
17 CRITICAL_SECTION lock
;
21 void qemu_rec_mutex_destroy(QemuRecMutex
*mutex
);
22 void qemu_rec_mutex_lock(QemuRecMutex
*mutex
);
23 int qemu_rec_mutex_trylock(QemuRecMutex
*mutex
);
24 void qemu_rec_mutex_unlock(QemuRecMutex
*mutex
);
27 CONDITION_VARIABLE var
;
31 struct QemuSemaphore
{
42 typedef struct QemuThreadData QemuThreadData
;
48 /* Only valid for joinable threads. */
49 HANDLE
qemu_thread_get_handle(QemuThread
*thread
);