BOOL
OSReleaseSpinLock(OSSpinLock *spinlock)
{
   spinReleaseLock(spinlock);
   OSTestThreadCancel();
   return TRUE;
}
Beispiel #2
0
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;
}
Beispiel #4
0
BOOL
OSUninterruptibleSpinLock_Release(OSSpinLock *spinlock)
{
   return spinReleaseLock(spinlock);
}