Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 Oct 2003 13:34:29 -0400 (EDT)
From:      John Baldwin <jhb@FreeBSD.org>
To:        Jeff Roberson <jeff@FreeBSD.org>
Cc:        cvs-all@FreeBSD.org
Subject:   RE: cvs commit: src/sys/sys mutex.h
Message-ID:  <XFMail.20031014133429.jhb@FreeBSD.org>
In-Reply-To: <200310122102.h9CL2txf053906@repoman.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help

On 12-Oct-2003 Jeff Roberson wrote:
> jeff        2003/10/12 14:02:55 PDT
> 
>   FreeBSD src repository
> 
>   Modified files:
>     sys/sys              mutex.h 
>   Log:
>    - Implement a mtx_ownedby() macro which can be used to determine if a
>      particular thread owns a mutex.  This cannot be done without races
>      unless the thread is curthread.

This is a very bad idea.  What use do you have for this that is not
already handled by mtx_owned() or a mutex assertion?

-- 

John Baldwin <jhb@FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve!"  -  http://www.FreeBSD.org/



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