feature: implement win32 drang_cond_wait function for condition variable synchronization
This commit is contained in:
parent
5de4836e20
commit
9ad553ea6e
1 changed files with 5 additions and 0 deletions
|
|
@ -87,6 +87,11 @@ int drang_cond_broadcast(struct drang_cond *cond)
|
|||
DRANG_END_TRY_IGNORE();
|
||||
}
|
||||
|
||||
int drang_cond_wait(struct drang_cond *cond, struct drang_mutex *mutex)
|
||||
{
|
||||
return drang_cond_timedwait(cond, mutex, 0);
|
||||
}
|
||||
|
||||
int drang_cond_timedwait(struct drang_cond *cond, struct drang_mutex *mutex, uint64_t timeout_ms)
|
||||
{
|
||||
DWORD timeout = (timeout_ms == 0) ? INFINITE : (DWORD)timeout_ms;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue