summaryrefslogtreecommitdiff
path: root/nuttx/sched/sem_timedwait.c
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/sched/sem_timedwait.c')
-rw-r--r--nuttx/sched/sem_timedwait.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/nuttx/sched/sem_timedwait.c b/nuttx/sched/sem_timedwait.c
index c02bc48db..7b01d22d8 100644
--- a/nuttx/sched/sem_timedwait.c
+++ b/nuttx/sched/sem_timedwait.c
@@ -271,7 +271,9 @@ int sem_timedwait(FAR sem_t *sem, FAR const struct timespec *abstime)
wd_delete(wdog);
/* We are either returning success or an error detected by sem_wait()
- * or the timeout detected by sem_timeout().
+ * or the timeout detected by sem_timeout(). The 'errno' value has
+ * been set appropriately by sem_wait() or sem_timeout() in those
+ * cases.
*/
return ret;