Ejemplo n.º 1
0
BOOL
OSReleaseSpinLock(OSSpinLock *spinlock)
{
   spinReleaseLock(spinlock);
   OSTestThreadCancel();
   return TRUE;
}
Ejemplo n.º 2
0
BOOL
OSReleaseSpinLock(OSSpinLock *spinlock)
{
   auto result = spinReleaseLock(spinlock);
   OSTestThreadCancel();
   return result;
}
Ejemplo n.º 3
0
/**
 * 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;
}
Ejemplo n.º 4
0
BOOL
OSUninterruptibleSpinLock_Release(OSSpinLock *spinlock)
{
   return spinReleaseLock(spinlock);
}