I didn't find it in Mac, but almost all Linux os support it.. Any one knows how to port it to mac?
Try using OSSpinLock instead. Documentation is here: http://developer.apple.com/library/mac/#documentation/Darwin/Reference/ManPages/man3/spinlock.3.html