[Xcb] Bug#496715: libpthread-stubs: Should provide more pthread_* functions

Ulrich Eckhardt doomster at knuut.de
Mon Oct 12 13:15:59 PDT 2009


On Sunday 11 October 2009 12:11:50 Remi Denis-Courmont wrote:
> I would expect cond_timedwait to sleep for the specified interval rather
> than abort (though sleeping in a portable way is not completely trivial).

Alternative suggestion: If pthread_cond_init() is implemented in the stubs to 
return "okay", then I could imagine pthread_cond_[timed]wait() to also work in 
some way.

Otherwise, if the former already signals an error, using a condition variable 
that wasn't even successfully initialized can well abort or misbehave in any 
other way it likes.

my 2cc

Uli


More information about the Xcb mailing list