fix expected return code for WaitForSingleObject in zap queue implementation

git-svn-id: http://svn.openzap.org/svn/openzap/branches/sangoma_boost@921 a93c3328-9c30-0410-af19-c9cd2b2d52af
This commit is contained in:
Moises Silva 2009-12-02 16:36:42 +00:00
parent 665aa967cd
commit 0b21fe80dc
1 changed files with 4 additions and 1 deletions

View File

@ -286,8 +286,11 @@ OZ_DECLARE(zap_status_t) zap_condition_wait(zap_condition_t *condition, int ms)
return ZAP_TIMEOUT;
case WAIT_FAILED:
return ZAP_FAIL;
case WAIT_OBJECT_0:
return ZAP_SUCCESS;
default:
zap_log(ZAP_LOG_ERROR, "Error waiting for openzap condition event (WaitForSingleObject returned %d)\n", res);
return ZAP_FAIL;
}
#else
int res = 0;
@ -305,8 +308,8 @@ OZ_DECLARE(zap_status_t) zap_condition_wait(zap_condition_t *condition, int ms)
}
return ZAP_FAIL;
}
#endif
return ZAP_SUCCESS;
#endif
}
OZ_DECLARE(zap_status_t) zap_condition_signal(zap_condition_t *condition)