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
@ -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…
Reference in New Issue
Block a user