Chip Bagwell
|
pthread_cond_timedwait() using CLOCK_REALTIME fails in 6.5.0, works in 6.4.1
|
Chip Bagwell
02/03/2011 11:54 AM
post82867
|
pthread_cond_timedwait() using CLOCK_REALTIME fails in 6.5.0, works in 6.4.1
I am using 6.4.1 on a ppcbe board (e500 core) and 6.5.0 on an ppcbe (e500mc core) board. I have noticed that
pthread_cond_timedwait() only delays the specified timeout time when using CLOCK_MONOTONIC under 6.5.0. Using
CLOCK_REALTIME, causes pthread_cond_timedwait() to immediately return with a value of 260 (ETIMEDOUT).
Under 6.4.1, the correct behavior is observed using either CLOCK_REALTIME, or CLOCK_MONOTONIC.
Can you tell me why CLOCK_REALTIME, no longer works under 6.5.0?
Attached is a simple test file that can be used to see the behavior I am seeing.
Thanks!
Chip Bagwell
|
|
|