Esempio n. 1
0
FORCEINLINE
ULONG_PTR
InternalCmpXChgCondVarAcq(IN OUT PRTL_CONDITION_VARIABLE ConditionVariable,
                          IN ULONG_PTR Exchange,
                          IN ULONG_PTR Comperand)
{
    return (ULONG_PTR)InterlockedCompareExchangePointerAcquire(&ConditionVariable->Ptr,
                                                               (PVOID)Exchange,
                                                               (PVOID)Comperand);
}
Esempio n. 2
0
 inline ::PVOID compare_exchange_acquire
     ( ::PVOID z, volatile ::PVOID& x, ::PVOID y )
 {
     return InterlockedCompareExchangePointerAcquire(&x, y, z);
 }