Current-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: pthread_cond_signal/broadcast: necessary to hold mutex?
Jörg Sonnenberger <joerg%bec.de@localhost> writes:
> On 3/25/26 12:55 AM, Greg Troxel wrote:
>> (You didn't answet the question if the interpretation that the mutex
>> remains locked during and thus after the signal call is correct.)
>
> Neither signal nor broadcast unlocks the mutex. Only cv_wait may
> release the mutex before blocking.
Makes sense but I can't find that in the POSIX text.
Home |
Main Index |
Thread Index |
Old Index