!1045 Fix : pthread_cond_timedwait 信号丢失问题修复挑单到3.1-Release 分支
Merge pull request !1045 from yinjiaming/cherry-pick-1680507618
This commit is contained in:
commit
d4d56b2b7c
|
@ -309,7 +309,6 @@ int pthread_cond_timedwait(pthread_cond_t *cond, pthread_mutex_t *mutex,
|
||||||
PRINT_ERR("%s: %d failed\n", __FUNCTION__, __LINE__);
|
PRINT_ERR("%s: %d failed\n", __FUNCTION__, __LINE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
(VOID)LOS_EventClear(&(cond->event), 0);
|
|
||||||
ret = (INT32)LOS_EventRead(&(cond->event), 0x0f, LOS_WAITMODE_OR | LOS_WAITMODE_CLR, (UINT32)absTicks);
|
ret = (INT32)LOS_EventRead(&(cond->event), 0x0f, LOS_WAITMODE_OR | LOS_WAITMODE_CLR, (UINT32)absTicks);
|
||||||
|
|
||||||
if (pthread_mutex_lock(mutex) != 0) {
|
if (pthread_mutex_lock(mutex) != 0) {
|
||||||
|
|
Loading…
Reference in New Issue