From owner-freebsd-arch@FreeBSD.ORG Sat Jun 26 21:41:22 2004 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DCB7216A4CE for ; Sat, 26 Jun 2004 21:41:22 +0000 (GMT) Received: from fidel.freesurf.fr (fidel.freesurf.fr [212.43.206.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id 981E343D46 for ; Sat, 26 Jun 2004 21:41:22 +0000 (GMT) (envelope-from nsouch@free.fr) Received: from smtp.freesurf.fr (62-240-249-21.adsl.freesurf.fr [62.240.249.21]) by fidel.freesurf.fr (Postfix) with SMTP id 6045E2A5BA4 for ; Sat, 26 Jun 2004 23:41:07 +0200 (CEST) Received: (qmail 7483 invoked by uid 1001); 26 Jun 2004 21:42:19 -0000 Date: Sat, 26 Jun 2004 23:42:19 +0200 From: Nicolas Souchu To: freebsd-arch@freebsd.org Message-ID: <20040626234219.A7461@armor.freesurf.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Subject: condvar and mutexes X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 Jun 2004 21:41:23 -0000 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