aboutsummaryrefslogtreecommitdiff
path: root/src/Platform/Posix/Thread.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/Platform/Posix/Thread.h')
-rw-r--r--src/Platform/Posix/Thread.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/src/Platform/Posix/Thread.h b/src/Platform/Posix/Thread.h
new file mode 100644
index 0000000..69c6c0f
--- /dev/null
+++ b/src/Platform/Posix/Thread.h
@@ -0,0 +1,35 @@
+#ifndef BH_PLATFORM_POSIX_THREAD_H
+#define BH_PLATFORM_POSIX_THREAD_H
+
+
+#include <pthread.h>
+#include <semaphore.h>
+
+
+struct BH_Condition
+{
+ pthread_cond_t handle;
+};
+
+
+struct BH_Mutex
+{
+ pthread_mutex_t handle;
+};
+
+
+struct BH_Semaphore
+{
+ sem_t handle;
+};
+
+
+struct BH_Thread
+{
+ pthread_t handle;
+};
+
+
+void BH_TssCleanup(void);
+
+#endif /* BH_PLATFORM_POSIX_THREAD_H */