Here's the real patch I meant to submit, including rth's suggested use of making _Atomic_swap i386 specific, rather than BeOS specific. Really, it should be in atomicity.h, but that's not my call. Besides the bugs RTH pointed out htat I had fixed already, I had changed one #include to what it really should have been. --Dan