From owner-cvs-all Wed Nov 15 14:39:39 2000 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 723AE37B4CF; Wed, 15 Nov 2000 14:39:36 -0800 (PST) Received: (from jhb@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id OAA95944; Wed, 15 Nov 2000 14:39:36 -0800 (PST) (envelope-from jhb@FreeBSD.org) Message-Id: <200011152239.OAA95944@freefall.freebsd.org> From: John Baldwin Date: Wed, 15 Nov 2000 14:39:36 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/sys systm.h src/sys/kern kern_synch.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG jhb 2000/11/15 14:39:36 PST Modified files: sys/sys systm.h sys/kern kern_synch.c Log: - Rename await() to mawait(). mawait() is to await() as msleep() is to tsleep(). Namely, mawait() takes an extra argument which is a mutex to drop when going to sleep. Just as with msleep(), if the priority argument includes the PDROP flag, then the mutex will be dropped and will not be reacquired when the process wakes up. - Add in a backwards compatible macro await() that passes in NULL as the mutex argument to mawait(). Revision Changes Path 1.127 +3 -2 src/sys/sys/systm.h 1.105 +28 -15 src/sys/kern/kern_synch.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message