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 [EMAIL PROTECTED] Usergroup [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message
- Need a clean room implementation of this function Arun Sharma
- RE: Need a clean room implementation of this function Bernd Walter
- RE: Need a clean room implementation of this function John Baldwin
- Re: Need a clean room implementation of this function Arun Sharma
- Re: Need a clean room implementation of this function Bernd Walter
- Re: Need a clean room implementation of this function Arun Sharma
- Re: Need a clean room implementation of this func... Bernd Walter
- Re: Need a clean room implementation of this function John Baldwin
- Re: Need a clean room implementation of this function Arun Sharma
- Re: Need a clean room implementation of this func... Jake Burkholder

