AudRecordLib
|
#include <atomic.h>
Public Member Functions | |
Type | Read (Type *a) const |
Type | Exchange (Type *a, Type b) const |
Atomic class specialisation for 4-byte operands
Type Atomic< Type, 4u >::Exchange | ( | Type * | a, |
Type | b | ||
) | const [inline] |
Atomically updates a value
Uses _InterlockedExchange
a | Pointer to a value to update |
b | Value to update with |
Type Atomic< Type, 4u >::Read | ( | Type * | a | ) | const [inline] |
Reads a value from an address
Uses _InterlockedCompareExchange
a | The pointer to read the value from |