提交 2d7486fc 编写于 作者: B Bernard Xiong

[pthreads] Fix the sem_trywait issue.

上级 712c0673
......@@ -362,7 +362,7 @@ int sem_trywait(sem_t *sem)
return -1;
}
result = rt_sem_take(sem->sem, RT_WAITING_FOREVER);
result = rt_sem_take(sem->sem, 0);
if (result == -RT_ETIMEOUT)
{
rt_set_errno(EAGAIN);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册