Re: pthread_cond_signal/broadcast: necessary to hold mutex?
Jörg Sonnenberger <[email protected]> Wed, 25 Mar 2026 00:57:29 +0100
| Newsgroups | gmane.os.netbsd.current |
|---|---|
| Message-ID | <[email protected]> |
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