Statistics
| Branch: | Revision:

root / qemu-thread-win32.h @ a74cdab4

History | View | Annotate | Download (307 Bytes)

1 9257d46d Paolo Bonzini
#ifndef __QEMU_THREAD_WIN32_H
2 9257d46d Paolo Bonzini
#define __QEMU_THREAD_WIN32_H 1
3 9257d46d Paolo Bonzini
#include "windows.h"
4 9257d46d Paolo Bonzini
5 9257d46d Paolo Bonzini
struct QemuMutex {
6 9257d46d Paolo Bonzini
    CRITICAL_SECTION lock;
7 9257d46d Paolo Bonzini
    LONG owner;
8 9257d46d Paolo Bonzini
};
9 9257d46d Paolo Bonzini
10 9257d46d Paolo Bonzini
struct QemuCond {
11 9257d46d Paolo Bonzini
    LONG waiters, target;
12 9257d46d Paolo Bonzini
    HANDLE sema;
13 9257d46d Paolo Bonzini
    HANDLE continue_event;
14 9257d46d Paolo Bonzini
};
15 9257d46d Paolo Bonzini
16 9257d46d Paolo Bonzini
struct QemuThread {
17 9257d46d Paolo Bonzini
    HANDLE thread;
18 9257d46d Paolo Bonzini
    void *ret;
19 9257d46d Paolo Bonzini
};
20 9257d46d Paolo Bonzini
21 9257d46d Paolo Bonzini
#endif