Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Jul 2001 23:15:40 +0200
From:      Bernd Walter <ticso@mail.cicely.de>
To:        Arun Sharma <arun@sharmas.dhs.org>
Cc:        hackers@FreeBSD.ORG
Subject:   Re: Need a clean room implementation of this function
Message-ID:  <20010726231540.A2249@cicely20.cicely.de>
In-Reply-To: <20010726135913.A23052@sharmas.dhs.org>; from arun@sharmas.dhs.org on Thu, Jul 26, 2001 at 01:59:13PM -0700
References:  <20010726135913.A23052@sharmas.dhs.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Jul 26, 2001 at 01:59:13PM -0700, Arun Sharma wrote:
> /**
>  * test_and_set_bit - Set a bit and return its old value
>  * @nr: Bit to set
>  * @addr: Address to count from
>  *
>  * This operation is atomic and cannot be reordered.  
>  * It also implies a memory barrier.
>  */
> static __inline__ int test_and_set_bit(int nr, volatile void * addr);

-current has a lot of atomic functions in src/sys/i386/include/atomic.h.

-- 
B.Walter              COSMO-Project         http://www.cosmo-project.de
ticso@cicely.de         Usergroup           info@cosmo-project.de


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




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