blob: 13adb958f04804e3712d1b56439c181d3bfed962 [file] [log] [blame]
#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 QemuSemaphore {
HANDLE sema;
};
typedef struct QemuThreadData QemuThreadData;
struct QemuThread {
QemuThreadData *data;
unsigned tid;
};
/* Only valid for joinable threads. */
HANDLE qemu_thread_get_handle(QemuThread *thread);
#endif