예제 #1
0
파일: condvar.c 프로젝트: Moteesh/reactos
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);
}
예제 #2
0
 inline ::PVOID compare_exchange_acquire
     ( ::PVOID z, volatile ::PVOID& x, ::PVOID y )
 {
     return InterlockedCompareExchangePointerAcquire(&x, y, z);
 }