Skip to content
Commit f9ecc9a6 authored by Christopher Friedt's avatar Christopher Friedt Committed by Chris Friedt
Browse files

posix: mutex: return ETIMEDOUT from pthread_mutex_timedlock()



The normative spec for `pthread_mutex_timedlock()` says that
it should return `ETIMEDOUT` when a timeout occurs. However,
currently it returns `EAGAIN`, which reflects what is returned
by `k_mutex_lock()`.

Inspect and update the return value to account for this slight
difference.

Signed-off-by: default avatarChristopher Friedt <cfriedt@meta.com>
parent a419f9b4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment