AudRecordLib
Public Member Functions
Atomic< Type, 4u > Struct Template Reference

#include <atomic.h>

List of all members.

Public Member Functions

Type Read (Type *a) const
Type Exchange (Type *a, Type b) const

Detailed Description

template<class Type>
struct Atomic< Type, 4u >

Atomic class specialisation for 4-byte operands


Member Function Documentation

template<class Type >
Type Atomic< Type, 4u >::Exchange ( Type *  a,
Type  b 
) const [inline]

Atomically updates a value

Uses _InterlockedExchange

Parameters:
aPointer to a value to update
bValue to update with
Returns:
The original value pointed to by a
template<class Type >
Type Atomic< Type, 4u >::Read ( Type *  a) const [inline]

Reads a value from an address

Uses _InterlockedCompareExchange

Parameters:
aThe pointer to read the value from
Returns:
The value read

The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Defines