#include <bh/internal/thread.h>
int bh_thread_init(bh_thread_t *thread,
bh_task_t *task)
{
(void)thread;
(void)task;
return -1;
}
bh_thread_t *bh_thread_new(bh_task_t *task)
return NULL;
int bh_thread_join(bh_thread_t *thread)
int bh_thread_detach(bh_thread_t *thread)
int bh_mutex_init(bh_mutex_t *mutex)
(void)mutex;
void bh_mutex_destroy(bh_mutex_t *mutex)
int bh_mutex_lock(bh_mutex_t *mutex)
int bh_mutex_try_lock(bh_mutex_t *mutex)
int bh_mutex_unlock(bh_mutex_t *mutex)
int bh_semaphore_init(bh_semaphore_t *semaphore, int count)
(void)semaphore;
(void)count;
void bh_semaphore_destroy(bh_semaphore_t *semaphore)
int bh_semaphore_post(bh_semaphore_t *semaphore)
int bh_semaphore_wait(bh_semaphore_t *semaphore)
int bh_semaphore_wait_for(bh_semaphore_t *semaphore,
unsigned long timeout)
int bh_semaphore_try_wait(bh_semaphore_t *semaphore)
int bh_cond_init(bh_cond_t *cond)
(void)cond;
void bh_cond_destroy(bh_cond_t *cond)
int bh_cond_wait(bh_cond_t *cond,
bh_mutex_t *mutex)
int bh_cond_wait_for(bh_cond_t *cond,
bh_mutex_t *mutex,
(void)timeout;
int bh_cond_signal(bh_cond_t *cond)
int bh_cond_broadcast(bh_cond_t *cond)
int bh_thread_pool_init(bh_thread_pool_t *pool,
size_t size)
(void)pool;
(void)size;
bh_thread_pool_t *bh_thread_pool_new(size_t size)