]> git.proxmox.com Git - qemu.git/blob - qemu-thread-posix.h
Merge remote-tracking branch 'kraxel/usb.69' into staging
[qemu.git] / qemu-thread-posix.h
1 #ifndef __QEMU_THREAD_POSIX_H
2 #define __QEMU_THREAD_POSIX_H 1
3 #include "pthread.h"
4 #include <semaphore.h>
5
6 struct QemuMutex {
7 pthread_mutex_t lock;
8 };
9
10 struct QemuCond {
11 pthread_cond_t cond;
12 };
13
14 struct QemuSemaphore {
15 sem_t sem;
16 };
17
18 struct QemuThread {
19 pthread_t thread;
20 };
21
22 #endif