Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

58 lines
715 B

/*++
Copyright (c) 1995 Microsoft Corporation
Module Name:
atomic.h
Abstract:
This is the include file for atomic.s - atomic operations on memory, used
for synchronization.
Author:
Barry Bond (barrybo) creation-date 03-Aug-1995
Revision History:
--*/
#ifndef _ATOMIC_H_
#define _ATOMIC_H_
DWORD
MrswFetchAndIncrementWriter(
DWORD *pCounters
);
DWORD
MrswFetchAndIncrementReader(
DWORD *pCounters
);
DWORD
MrswFetchAndDecrementWriter(
DWORD *pCounters
);
DWORD
MrswFetchAndDecrementReader(
DWORD *pCounters
);
DWORD
InterlockedAnd(
DWORD *pDWORD,
DWORD AndValue
);
DWORD
InterlockedOr(
DWORD *pDWORD,
DWORD OrValue
);
#endif