aboutsummaryrefslogtreecommitdiff
path: root/src/Platform/Dummy/Semaphore.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/Platform/Dummy/Semaphore.c')
-rw-r--r--src/Platform/Dummy/Semaphore.c51
1 files changed, 51 insertions, 0 deletions
diff --git a/src/Platform/Dummy/Semaphore.c b/src/Platform/Dummy/Semaphore.c
new file mode 100644
index 0000000..72d0bc4
--- /dev/null
+++ b/src/Platform/Dummy/Semaphore.c
@@ -0,0 +1,51 @@
+#include "Thread.h"
+
+#include <BH/Thread.h>
+
+
+BH_Semaphore *BH_SemaphoreNew(int value)
+{
+ BH_UNUSED(value);
+
+ return NULL;
+}
+
+
+void BH_SemaphoreFree(BH_Semaphore *semaphore)
+{
+ BH_UNUSED(semaphore);
+}
+
+
+int BH_SemaphorePost(BH_Semaphore *semaphore)
+{
+ BH_UNUSED(semaphore);
+
+ return BH_NOIMPL;
+}
+
+
+int BH_SemaphoreWait(BH_Semaphore *semaphore)
+{
+ BH_UNUSED(semaphore);
+
+ return BH_NOIMPL;
+}
+
+
+int BH_SemaphoreWaitTry(BH_Semaphore *semaphore)
+{
+ BH_UNUSED(semaphore);
+
+ return BH_NOIMPL;
+}
+
+
+int BH_SemaphoreWaitFor(BH_Semaphore *semaphore,
+ uint32_t timeout)
+{
+ BH_UNUSED(semaphore);
+ BH_UNUSED(timeout);
+
+ return BH_NOIMPL;
+}