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_impl(QemuRecMutex
*mutex
, const char *file
, int line
);
23 int qemu_rec_mutex_trylock_impl(QemuRecMutex
*mutex
, const char *file
,
25 void qemu_rec_mutex_unlock(QemuRecMutex
*mutex
);
28 CONDITION_VARIABLE var
;
32 struct QemuSemaphore
{
43 typedef struct QemuThreadData QemuThreadData
;
49 /* Only valid for joinable threads. */
50 HANDLE
qemu_thread_get_handle(struct QemuThread
*thread
);