On 11/02/2011 07:18 AM, Andrew MacLeod wrote: > OK, I think i need to revert my position and introduce > __atomic_test_and_set() and __atomic_clear(). bah. I'll work on > that today.
I don't think you do. We already have the __sync functions, and we should just use those. What we need is a preprocessor flag that tells you that you need to use those older sync routines. r~