aboutsummaryrefslogtreecommitdiff
path: root/include/qemu/thread-posix.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/qemu/thread-posix.h')
-rw-r--r--include/qemu/thread-posix.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/include/qemu/thread-posix.h b/include/qemu/thread-posix.h
index b792e6e..5f2f3d1 100644
--- a/include/qemu/thread-posix.h
+++ b/include/qemu/thread-posix.h
@@ -27,14 +27,9 @@ struct QemuCond {
};
struct QemuSemaphore {
-#ifndef CONFIG_SEM_TIMEDWAIT
- pthread_mutex_t lock;
- pthread_cond_t cond;
+ QemuMutex mutex;
+ QemuCond cond;
unsigned int count;
-#else
- sem_t sem;
-#endif
- bool initialized;
};
struct QemuEvent {