Lines Matching defs:g_hRTPowerNotifySpinLock
74 static RTSPINLOCK volatile g_hRTPowerNotifySpinLock = NIL_RTSPINLOCK;
112 hSpinlock = g_hRTPowerNotifySpinLock;
134 RTSpinlockRelease(g_hRTPowerNotifySpinLock);
139 hSpinlock = g_hRTPowerNotifySpinLock;
166 AssertReturn(g_hRTPowerNotifySpinLock != NIL_RTSPINLOCK, VERR_WRONG_ORDER);
169 RTSpinlockAcquire(g_hRTPowerNotifySpinLock);
174 RTSpinlockRelease(g_hRTPowerNotifySpinLock);
189 RTSpinlockAcquire(g_hRTPowerNotifySpinLock);
210 RTSpinlockRelease(g_hRTPowerNotifySpinLock);
233 AssertReturn(g_hRTPowerNotifySpinLock != NIL_RTSPINLOCK, VERR_WRONG_ORDER);
239 RTSpinlockAcquire(g_hRTPowerNotifySpinLock);
256 RTSpinlockRelease(g_hRTPowerNotifySpinLock);
275 int rc = RTSpinlockCreate((PRTSPINLOCK)&g_hRTPowerNotifySpinLock, RTSPINLOCK_FLAGS_INTERRUPT_SAFE, "RTR0Power");
281 RTSpinlockDestroy(g_hRTPowerNotifySpinLock);
282 g_hRTPowerNotifySpinLock = NIL_RTSPINLOCK;
292 RTSPINLOCK hSpinlock = g_hRTPowerNotifySpinLock;
299 ASMAtomicWriteHandle(&g_hRTPowerNotifySpinLock, NIL_RTSPINLOCK);