1 September 2009 0 Comments

pthread_cond_timedwait behaving differently on different platforms

pthread_cond_timedwait is a nice little function that can be used to “atomically” release a mutex, wait for a condition with a timeout and then acquire the mutex. The first pitfall of this method is that the “timeout” is an absolute time, not a relative time as with most timeouts.

Read the original here: 
pthread_cond_timedwait behaving differently on different platforms

If you liked this post, buy me a Coffee.

Leave a Reply