Implement WinNT condition variables, add semaphors

This commit is contained in:
2024-04-27 11:25:21 +03:00
parent bc1d198c10
commit fdbabab0e0
11 changed files with 515 additions and 52 deletions

View File

@@ -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;