Remi Denis-Courmont, le Sun 11 Oct 2009 12:11:50 +0200, a écrit :
> ----- Message d'origine -----
> > Here is a patch that adds only pthread_condattr_init/destroy,
> > pthread_cond_timedwait, pthread_exit, and makes both cond_*wait abort
> > instead of just returning 0.
> 
> I would expect cond_timedwait to sleep for the specified interval rather than 
> abort (though sleeping in a portable way is not completely trivial). No?

The problem is that we don't have an example where an application
would actually need that behavior.  If the application is waiting for
something that can only be signaled by another thread (that's what
condition variables do) while threads are not actually used, there's
probably something wrong in it and it's probably better to just report
it accurately.

Samuel



--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to