summaryrefslogtreecommitdiff
path: root/qemu-thread-posix.h
diff options
context:
space:
mode:
Diffstat (limited to 'qemu-thread-posix.h')
-rw-r--r--qemu-thread-posix.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/qemu-thread-posix.h b/qemu-thread-posix.h
new file mode 100644
index 0000000000..7af371c3b7
--- /dev/null
+++ b/qemu-thread-posix.h
@@ -0,0 +1,18 @@
+#ifndef __QEMU_THREAD_POSIX_H
+#define __QEMU_THREAD_POSIX_H 1
+#include "pthread.h"
+
+struct QemuMutex {
+ pthread_mutex_t lock;
+};
+
+struct QemuCond {
+ pthread_cond_t cond;
+};
+
+struct QemuThread {
+ pthread_t thread;
+};
+
+void qemu_thread_signal(QemuThread *thread, int sig);
+#endif