Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Dec 2000 00:53:13 -0500
From:      Jake Burkholder <jburkhol@home.com>
To:        Jake Burkholder <jake@FreeBSD.org>
Cc:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/sys/sys lock.h 
Message-ID:  <20001218055313.68738BA7D@io.yi.org>
In-Reply-To: Message from Jake Burkholder <jake@FreeBSD.org>  of "Sun, 17 Dec 2000 21:50:34 PST." <200012180550.eBI5oYQ12161@freefall.freebsd.org> 

next in thread | previous in thread | raw e-mail | index | archive | help
> jake        2000/12/17 21:50:34 PST
> 
>   Modified files:
>     sys/sys              lock.h 
>   Log:
>   Add an assertion macro for lockmgr locks, LOCKMGR_ASSERT(lkp, what, p).
>   The what argument is the hold type that assertion acts on.  LK_SHARED
>   to assert that the process holds a shared, LK_EXCLUSIVE to assert that
>   the process holds _either_ a shared lock or an exclusive lock.
>   
>   Revision  Changes    Path
>   1.24      +23 -1     src/sys/sys/lock.h
> 
> 

Sorry, I got this backwards.  The LK_SHARED test will pass if an
exclusive lock is held.  The LK_EXCLUSIVE test will not pass for
a shared lock.



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20001218055313.68738BA7D>