Re: pthread_cond_signal/broadcast: necessary to hold mutex?
Greg Troxel <[email protected]> Tue, 24 Mar 2026 20:37:13 -0400
| Newsgroups | gmane.os.netbsd.current |
|---|---|
| Message-ID | <[email protected]> |
Jörg Sonnenberger <[email protected]> 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.