aboutsummaryrefslogtreecommitdiff
path: root/include/bh/internal/thread_null.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/bh/internal/thread_null.h')
-rw-r--r--include/bh/internal/thread_null.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/include/bh/internal/thread_null.h b/include/bh/internal/thread_null.h
new file mode 100644
index 0000000..9a22da5
--- /dev/null
+++ b/include/bh/internal/thread_null.h
@@ -0,0 +1,28 @@
+struct bh_thread_s
+{
+ void *handle;
+};
+
+struct bh_mutex_s
+{
+ void *handle;
+};
+
+struct bh_cond_s
+{
+ void *handle;
+};
+
+int bh_thread_init(bh_thread_t *thread,
+ bh_task_t *task);
+
+int bh_mutex_init(bh_mutex_t *mutex);
+void bh_mutex_destroy(bh_mutex_t *mutex);
+
+int bh_cond_init(bh_cond_t *cond);
+void bh_cond_destroy(bh_cond_t *cond);
+
+int bh_thread_pool_init(bh_thread_pool_t *pool,
+ size_t size);
+
+void bh_thread_pool_destroy(bh_thread_pool_t *pool);