Cancellable high resolution timed waits
Status: Pre-Alpha
Brought to you by:
georgeanz
Submitter: awa@oce.nl
After applying the HRT patch on an X86 system, calls to
clock_nanosleep() with CLOCK_REALTIME_HR have the
desired microsecond resolution. However, calls to
nanosleep() are still 'jiffie' accurate (e.g.
resolution is 1 millisecond).
I either want to use pthread_timedwait() or
clock_nanosleep() to implement a high resolution timed
wait that is cancellable. Two problems exist:
1. pthread_timedwait() also has the 1 millisecond
resolution (possibly because it internally uses
nanosleep()?).
2. clock_nanosleep(CLOCK_REALTIME_HR, ...) is not
cancellable (verified with SourceForge Posix complience
package).
This feature request is about fixing one or both issues.
Test program to verify that clock_nanosleep() is not cancellable