root / qemu-thread-posix.h @ 38b14db3
History | View | Annotate | Download (298 Bytes)
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
|