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

  1. /*++
  2. Copyright (c) 1995 Microsoft Corporation
  3. Module Name:
  4. atomic.h
  5. Abstract:
  6. This is the include file for atomic.s - atomic operations on memory, used
  7. for synchronization.
  8. Author:
  9. Barry Bond (barrybo) creation-date 03-Aug-1995
  10. Revision History:
  11. --*/
  12. #ifndef _ATOMIC_H_
  13. #define _ATOMIC_H_
  14. DWORD
  15. MrswFetchAndIncrementWriter(
  16. DWORD *pCounters
  17. );
  18. DWORD
  19. MrswFetchAndIncrementReader(
  20. DWORD *pCounters
  21. );
  22. DWORD
  23. MrswFetchAndDecrementWriter(
  24. DWORD *pCounters
  25. );
  26. DWORD
  27. MrswFetchAndDecrementReader(
  28. DWORD *pCounters
  29. );
  30. DWORD
  31. InterlockedAnd(
  32. DWORD *pDWORD,
  33. DWORD AndValue
  34. );
  35. DWORD
  36. InterlockedOr(
  37. DWORD *pDWORD,
  38. DWORD OrValue
  39. );
  40. #endif