Add thread sleep function
This commit is contained in:
@@ -79,6 +79,12 @@ bh_thread_t *bh_thread_new_base(bh_task_t *task,
|
||||
return result;
|
||||
}
|
||||
|
||||
int bh_thread_sleep(unsigned long timeout)
|
||||
{
|
||||
Sleep(timeout);
|
||||
return BH_OK;
|
||||
}
|
||||
|
||||
int bh_thread_join(bh_thread_t *thread)
|
||||
{
|
||||
/* Join the thread */
|
||||
|
||||
Reference in New Issue
Block a user