Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 26 Jun 2004 23:42:19 +0200
From:      Nicolas Souchu <nsouch@free.fr>
To:        freebsd-arch@freebsd.org
Subject:   condvar and mutexes
Message-ID:  <20040626234219.A7461@armor.freesurf.fr>

next in thread | raw e-mail | index | archive | help

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@free.fr - nsouch@FreeBSD.org
http://www.freebsd.org/~nsouch/kgi4BSD


Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040626234219.A7461>