bitops atomicity question

Pavel Machek (pavel@Elf.mj.gts.cz)
Sun, 24 Aug 1997 23:55:21 +0200


Hi!

I just would like to ask:

Is test_and_clear_bit guaranteed to be atomic on SMP machines? (I
would like to create my own locking from userland - ipc semaphores are
way too slow - and need some atomic operations...)

-- 
I'm really pavel@atrey.karlin.mff.cuni.cz. 	   Pavel
Look at http://atrey.karlin.mff.cuni.cz/~pavel/ ;-).