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?



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.

Joerg


Home | Main Index | Thread Index | Old Index