From owner-freebsd-hackers Mon Apr 23 13:56:18 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from fw.wintelcom.net (ns1.wintelcom.net [209.1.153.20]) by hub.freebsd.org (Postfix) with ESMTP id 1D95737B422 for ; Mon, 23 Apr 2001 13:56:17 -0700 (PDT) (envelope-from bright@fw.wintelcom.net) Received: (from bright@localhost) by fw.wintelcom.net (8.10.0/8.10.0) id f3NKuCB09604; Mon, 23 Apr 2001 13:56:12 -0700 (PDT) Date: Mon, 23 Apr 2001 13:56:12 -0700 From: Alfred Perlstein To: Zhihui Zhang Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: cv_wait() or sv_wait() in FreeBSD Message-ID: <20010423135611.X1790@fw.wintelcom.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from zzhang@cs.binghamton.edu on Mon, Apr 23, 2001 at 03:33:04PM -0400 X-all-your-base: are belong to us. Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG * Zhihui Zhang [010423 12:33] wrote: > > Do we have conditional/synchronization variable support in FreeBSD? If > not, is there any alternative mechanism to use in the kernel? Thanks. FreeBSD Current has these, see the cv_wait manpage. FreeBSD stable doesn't and you can use the traditional tsleep/wakeup/wakeup_one mechanisms. -- -Alfred Perlstein - [alfred@freebsd.org] Instead of asking why a piece of software is using "1970s technology," start asking why software is ignoring 30 years of accumulated wisdom. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message