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.c39
1 files changed, 39 insertions, 0 deletions
diff --git a/src/thread_null.c b/src/thread_null.c
index 25d8a88..212174a 100644
--- a/src/thread_null.c
+++ b/src/thread_null.c
@@ -367,6 +367,45 @@ int bh_thread_pool_init(bh_thread_pool_t *pool,
return BH_NO_IMPL;
}
+void bh_spinlock_init(bh_spinlock_t *lock)
+{
+ lock->handle = 0;
+}
+
+void bh_spinlock_destroy(bh_spinlock_t *lock)
+{
+ (void)lock;
+}
+
+int bh_spinlock_lock(bh_spinlock_t *lock)
+{
+ return BH_NO_IMPL;
+}
+
+int bh_spinlock_unlock(bh_spinlock_t *lock)
+{
+ return BH_NO_IMPL;
+}
+
+int bh_spinlock_try_lock(bh_spinlock_t *lock)
+{
+ return BH_NO_IMPL;
+}
+
+bh_tls_info_t *bh_tls_info(void)
+{
+ static bh_tls_info_t info;
+
+ return &info;
+}
+
+bh_tls_t *bh_tls_fetch(void)
+{
+ static bh_tls_t tls;
+
+ return &tls;
+}
+
/**
* \}
*/ \ No newline at end of file