Boost logo

Boost :

Subject: Re: [boost] Boost.Fiber mini-review September 4-13
From: Vicente J. Botet Escriba (vicente.botet_at_[hidden])
Date: 2015-09-05 20:12:10


Le 05/09/15 08:42, Oliver Kowalke a écrit :
> 2015-09-04 21:05 GMT+02:00 Agustín K-ballo Bergé <kaballo86_at_[hidden]>:
>
>> 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


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk