[Bug 156800] Protect against spurious wakeups
Alex Kern
alex.kern at gmx.de
Wed Jan 30 22:11:34 GMT 2008
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=156800
------- Additional Comments From alex.kern gmx de 2008-01-30 23:11 -------
Hi, I would like to make clear...
man pthread_cond_wait
The pthread_cond_timedwait() and pthread_cond_wait() functions may fail if:
EINVAL The value specified by cond, mutex, or abstime is invalid.
EINVAL Different mutexes were supplied for concurrent pthread_cond_timedwait() or pthread_cond_wait() operations on the same condition variable.
EPERM The mutex was not owned by the current thread at the time of the call.
These functions shall not return an error code of [EINTR].
!!! Also it's not allowed for pthread to return if wakeup is occurs. !!!
More information about the kde-multimedia
mailing list