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:
Shane Bryldt committed 2017-03-29 17:22:29 -06:00
1 parent 7fd6a2c119
commit b41a847b9d
9 files changed
+1166 -1200

No files matched your search

+2 -1
View File
@@ -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 {