提交 0b21fe80 authored 作者: Moises Silva's avatar Moises Silva

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
上级 665aa967
......@@ -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)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论