BOOL OSReleaseSpinLock(OSSpinLock *spinlock) { spinReleaseLock(spinlock); OSTestThreadCancel(); return TRUE; }
BOOL OSReleaseSpinLock(OSSpinLock *spinlock) { auto result = spinReleaseLock(spinlock); OSTestThreadCancel(); return result; }
/** * Release an Uninterruptible Spin Lock. * * Interrupts will be restored to their previous state before * the lock was acquired. * * \return Returns TRUE if the lock was released. */ BOOL OSUninterruptibleSpinLock_Release(OSSpinLock *spinlock) { if (spinReleaseLock(spinlock)) { OSRestoreInterrupts(spinlock->restoreInterruptState); } return TRUE; }
BOOL OSUninterruptibleSpinLock_Release(OSSpinLock *spinlock) { return spinReleaseLock(spinlock); }