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:
Marco Casaroli 2022-12-07 09:05:11 +01:00 committed by Xiang Xiao
parent af149b44cd
commit 11cc232de5

View File

@ -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.