aboutsummaryrefslogtreecommitdiff
path: root/src/thread_null.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/thread_null.c')
-rw-r--r--src/thread_null.c37
1 files changed, 37 insertions, 0 deletions
diff --git a/src/thread_null.c b/src/thread_null.c
index 494e0b6..af73fd6 100644
--- a/src/thread_null.c
+++ b/src/thread_null.c
@@ -55,6 +55,43 @@ int bh_mutex_unlock(bh_mutex_t *mutex)
return -1;
}
+int bh_semaphore_init(bh_semaphore_t *semaphore, int count)
+{
+ (void)semaphore;
+ (void)count;
+ return -1;
+}
+
+void bh_semaphore_destroy(bh_semaphore_t *semaphore)
+{
+ (void)semaphore;
+}
+
+int bh_semaphore_post(bh_semaphore_t *semaphore)
+{
+ (void)semaphore;
+ return -1;
+}
+
+int bh_semaphore_wait(bh_semaphore_t *semaphore)
+{
+ (void)semaphore;
+ return -1;
+}
+
+int bh_semaphore_wait_for(bh_semaphore_t *semaphore,
+ unsigned long timeout)
+{
+ (void)semaphore;
+ return -1;
+}
+
+int bh_semaphore_try_wait(bh_semaphore_t *semaphore)
+{
+ (void)semaphore;
+ return -1;
+}
+
int bh_cond_init(bh_cond_t *cond)
{
(void)cond;