mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-13 13:07:06 +00:00
FS-10167: Fixed bug in windows test_thread_pools test related to the thread pool itself and ks_q cleanup
This commit is contained in:
1 parent
7fd6a2c119
commit
b41a847b9d
9 files changed
+1166
-1200
No files matched your search
@@ -383,7 +383,8 @@ KS_DECLARE(ks_status_t) ks_cond_wait(ks_cond_t *cond)
|
||||
KS_DECLARE(ks_status_t) ks_cond_timedwait(ks_cond_t *cond, ks_time_t ms)
|
||||
{
|
||||
#ifdef WIN32
|
||||
if(!SleepConditionVariableCS(&cond->cond, &cond->mutex->mutex, (DWORD)ms)) {
|
||||
BOOL res = SleepConditionVariableCS(&cond->cond, &cond->mutex->mutex, (DWORD)ms);
|
||||
if (!res) {
|
||||
if (GetLastError() == ERROR_TIMEOUT) {
|
||||
return KS_STATUS_TIMEOUT;
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user