mirror of
https://github.com/xemu-project/xemu.git
synced 2024-11-24 03:59:52 +00:00
9257d46d55
For now, qemu_cond_timedwait and qemu_mutex_timedlock are left as POSIX-only functions. They can be removed later, once the patches that remove their uses are in. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
22 lines
307 B
C
22 lines
307 B
C
#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
|