Spin lock functions
Locks a spin lock, spinning if the lock is already held
XS_EXPORT void XSSpinLockLock(
XSSpinLock *lock );
Tries to lock a spin lock
XS_EXPORT bool XSSpinLockTryLock(
XSSpinLock *lock );
This function does not spin and returns immediately if the lock is already held.
True if the spin lock was successfully locked, otherwise false
Unconditionally unlocks a spin lock
XS_EXPORT void XSSpinLockUnlock(
XSSpinLock *lock );