From owner-cvs-all Tue Jul 3 17:32:57 2001 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 57DF637B401; Tue, 3 Jul 2001 17:32:51 -0700 (PDT) (envelope-from jake@FreeBSD.org) Received: (from jake@localhost) by freefall.freebsd.org (8.11.3/8.11.3) id f640Wpi26754; Tue, 3 Jul 2001 17:32:51 -0700 (PDT) (envelope-from jake) Message-Id: <200107040032.f640Wpi26754@freefall.freebsd.org> From: Jake Burkholder Date: Tue, 3 Jul 2001 17:32:51 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/sys systm.h condvar.h src/sys/kern kern_synch.c kern_condvar.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG jake 2001/07/03 17:32:51 PDT Modified files: sys/sys systm.h condvar.h sys/kern kern_synch.c kern_condvar.c Log: Implement mwakeup, mwakeup_one, cv_signal_drop and cv_broadcast_drop. These take an additional mutex argument, which is dropped before any processes are made runnable. This can avoid contention on the mutex if the processes would immediately acquire it, and is done in such a way that wakeups will not be lost. Reviewed by: jhb Revision Changes Path 1.142 +5 -3 src/sys/sys/systm.h 1.3 +3 -1 src/sys/sys/condvar.h 1.147 +14 -5 src/sys/kern/kern_synch.c 1.10 +40 -1 src/sys/kern/kern_condvar.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message