[RTEMS Project] #3182: CLOCK_REALTIME timeout implementation is not POSIX compliant
RTEMS trac
trac at rtems.org
Thu Oct 19 12:47:54 UTC 2017
#3182: CLOCK_REALTIME timeout implementation is not POSIX compliant
-----------------------------+------------------------------
Reporter: Sebastian Huber | Owner: Sebastian Huber
Type: defect | Status: assigned
Priority: normal | Milestone: 4.12.0
Component: posix | Version:
Severity: normal | Resolution:
Keywords: |
-----------------------------+------------------------------
Comment (by Sebastian Huber):
According to POSIX we have for clock_nanosleep():
http://pubs.opengroup.org/onlinepubs/9699919799/functions/clock_nanosleep.html
"If, at the time of the call, the time value specified by rqtp is less
than or equal to the time value of the specified clock, then
clock_nanosleep() shall return immediately and the calling process shall
not be suspended."
Would it be all right to perform a sched_yield() in this case? This would
make the implementation of the thread queue enqueue a bit easier.
--
Ticket URL: <http://devel.rtems.org/ticket/3182#comment:7>
RTEMS Project <http://www.rtems.org/>
RTEMS Project
More information about the bugs
mailing list