Files
xemu/include/qemu/thread-win32.h
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

47 lines
764 B
C
Raw Normal View History

#ifndef QEMU_THREAD_WIN32_H
#define QEMU_THREAD_WIN32_H
#include <windows.h>
2011-03-12 17:43:52 +01:00
struct QemuMutex {
SRWLOCK lock;
2018-06-13 14:23:08 +02:00
#ifdef CONFIG_DEBUG_MUTEX
const char *file;
int line;
#endif
bool initialized;
2011-03-12 17:43:52 +01:00
};
2016-10-27 12:49:07 +02:00
typedef struct QemuRecMutex QemuRecMutex;
struct QemuRecMutex {
CRITICAL_SECTION lock;
bool initialized;
2016-10-27 12:49:07 +02:00
};
2011-03-12 17:43:52 +01:00
struct QemuCond {
CONDITION_VARIABLE var;
bool initialized;
2011-03-12 17:43:52 +01:00
};
2011-08-08 14:36:41 +02:00
struct QemuSemaphore {
HANDLE sema;
bool initialized;
2011-08-08 14:36:41 +02:00
};
2013-09-25 14:20:59 +08:00
struct QemuEvent {
int value;
2013-09-25 14:20:59 +08:00
HANDLE event;
bool initialized;
2013-09-25 14:20:59 +08:00
};
typedef struct QemuThreadData QemuThreadData;
2011-03-12 17:43:52 +01:00
struct QemuThread {
QemuThreadData *data;
unsigned tid;
2011-03-12 17:43:52 +01:00
};
2011-12-13 13:43:52 +01:00
/* Only valid for joinable threads. */
2019-08-12 07:23:31 +02:00
HANDLE qemu_thread_get_handle(struct QemuThread *thread);
2011-12-13 13:43:52 +01:00
2011-03-12 17:43:52 +01:00
#endif