Skip to contentSkip to conversation

-ETIMEDOUT return value not described in rt_cond_wait API documentation?

PATCH In review Klaas Gadeyne 2 participants 2 messages May 6, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 -ETIMEDOUT return value not described in rt_cond_wait API documentation?

Hi,

it seems -ETIMEDOUT is not mentioned as a possible return value of rt_cond_wait() in the API docs [1], although it *is* returned in case of the timeout having expired [2]?

Attached patch tries to solve this against the 2.4 branch.

regards,

Klaas

ps. This seems to apply to 2.3, 2.4 and trunk.

[1]
<http://www.xenomai.org/documentation/trunk/html/api/group__cond.html#g3aa51073817be2ffb2a880a7393502e8>
[2] <http://www.rts.uni-hannover.de/xenomai/lxr/source/ksrc/skins/native/cond.c#493>

cond.c +3 -0
Index: cond.c
===================================================================
@@ -416,6 +416,9 @@
  * descriptor, including if the deletion occurred while the caller was
  * sleeping on the variable.
  *
+ * - -ETIMEDOUT is returned if @a timeout expired before the condition
+ * variable has been signaled.
+ *
  * - -EINTR is returned if rt_task_unblock() has been called for the
  * waiting task before the condition variable has been signaled.
  *
#1 lore raw
Quoted 6 lines · Klaas Gadeyne

Hi,

it seems -ETIMEDOUT is not mentioned as a possible return value of rt_cond_wait() in the API docs [1], although it *is* returned in case of the timeout having expired [2]?

Indeed. Applied, thanks.

Quoted 21 lines

Attached patch tries to solve this against the 2.4 branch.

regards,

Klaas

ps. This seems to apply to 2.3, 2.4 and trunk.

[1]
<http://www.xenomai.org/documentation/trunk/html/api/group__cond.html#g3aa51073817be2ffb2a880a7393502e8>

[2]
<http://www.rts.uni-hannover.de/xenomai/lxr/source/ksrc/skins/native/cond.c#493>

------------------------------------------------------------------------

_______________________________________________
Xenomai-core mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-core

Signature · 1 line
Philippe.