condvar and mutexes

Nicolas Souchu nsouch at free.fr
Sat Jun 26 21:41:23 GMT 2004


Why is condvar(9) API not part of the mutex(9) one? A condvar is
nothing more than a mutex with a queue of waiting threads.

I would simply imagine some wait calls applied to mutexes
with the queue in the mutex struct.

Nicholas

-- 
Nicholas Souchu - nsouch at free.fr - nsouch at FreeBSD.org
http://www.freebsd.org/~nsouch/kgi4BSD


More information about the freebsd-arch mailing list