From owner-freebsd-smp Sat Sep 9 8: 2:49 2000 Delivered-To: freebsd-smp@freebsd.org Received: from finch-post-12.mail.demon.net (finch-post-12.mail.demon.net [194.217.242.41]) by hub.freebsd.org (Postfix) with ESMTP id 084BA37B424 for ; Sat, 9 Sep 2000 08:02:46 -0700 (PDT) Received: from nlsys.demon.co.uk ([158.152.125.33] helo=herring.nlsystems.com) by finch-post-12.mail.demon.net with esmtp (Exim 2.12 #1) id 13Xm9U-000IxB-0C; Sat, 9 Sep 2000 15:02:45 +0000 Received: from salmon.nlsystems.com (salmon.nlsystems.com [10.0.0.3]) by herring.nlsystems.com (8.9.3/8.8.8) with ESMTP id QAA18224; Sat, 9 Sep 2000 16:04:16 +0100 (BST) (envelope-from dfr@nlsystems.com) Date: Sat, 9 Sep 2000 16:03:28 +0100 (BST) From: Doug Rabson To: Daniel Eischen Cc: Jake Burkholder , Alfred Perlstein , smp@freebsd.org Subject: Re: SMPng: catching signals and mutexes. In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-smp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Sat, 9 Sep 2000, Daniel Eischen wrote: > On Fri, 8 Sep 2000, Jake Burkholder wrote: > > > On Fri, 8 Sep 2000, Alfred Perlstein wrote: > > > > There seems to be no way to specify that a signal is to interrupt > > > > a wait on a mutex, I'm wondering if we should make it possible to > > > > do so. > > > > > > [...] > > > > > > > I'm not sure I like this at all, shouldn't there be an > > > > mtx_enter with some option to return an error if a signal > > > > arrives? > > > > > > IMHO, yes. Solaris has cv_wait_sig() for just that. > > > > > > > Mutexes are meant to serve a different purpose than tsleep or > > condition variables. > > > > The next thing in line is to add a mutex argument to tsleep, > > which will be atomicly released and re-acquired upon resume. > > So how far are we from removing tsleep in favor of cv_wait()/ > cv_wait_sig() or similar? Let's get rid of tsleep if at all > possible. Removing tsleep would be a large job and is reasonably separate from adding mutexes to replace spls for data protection. -- Doug Rabson Mail: dfr@nlsystems.com Nonlinear Systems Ltd. Phone: +44 20 8348 3944 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-smp" in the body of the message