6 Sep
2015
6 Sep
'15
12:12 a.m.
Le 05/09/15 08:42, Oliver Kowalke a écrit :
2015-09-04 21:05 GMT+02:00 Agustín K-ballo Bergé
: Although holding a mutex while firing on the condition variable is considered bad practice, so this would be even better:
do you have a reference?
in Butenhof's examples pthread_cond_signal/pthread_cond_broadcast are always called if front of pthread_mutex_unlock
Hi, I don't know if it is bad or good practice. In any case we don't need to maintain the lock while notifying. Vicente