mirror of
https://github.com/apache/nuttx.git
synced 2026-05-27 11:26:12 +08:00
pthread_mutex_timedlock never returns EINTR
According to posix spec, this function should never return `EINTR`. This fixes the call to `pthread_mutex_take` so it keeps retrying the lock and doesn't return `EINTR`
This commit is contained in:
committed by
Xiang Xiao
parent
af149b44cd
commit
11cc232de5
@@ -187,7 +187,7 @@ int pthread_mutex_timedlock(FAR pthread_mutex_t *mutex,
|
|||||||
* or default mutex.
|
* or default mutex.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
ret = pthread_mutex_take(mutex, abs_timeout, true);
|
ret = pthread_mutex_take(mutex, abs_timeout, false);
|
||||||
|
|
||||||
/* If we successfully obtained the semaphore, then indicate
|
/* If we successfully obtained the semaphore, then indicate
|
||||||
* that we own it.
|
* that we own it.
|
||||||
|
|||||||
Reference in New Issue
Block a user