mirror of
https://github.com/apache/nuttx.git
synced 2026-10-06 22:05:21 +00: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:
parent
af149b44cd
commit
11cc232de5
1 changed files with 1 additions and 1 deletions
|
|
@ -187,7 +187,7 @@ int pthread_mutex_timedlock(FAR pthread_mutex_t *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
|
||||
* that we own it.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue