AudRecordLib
Classes | Functions
atomic.h File Reference

Contains template wrappers for the Interlocked* compiler intrinsics. More...

Go to the source code of this file.

Classes

struct  Atomic< Type, size >
struct  Atomic< Type, 4u >

Functions

template<class Type >
Type InterlockedExchange (Type *a, Type b)
template<class Type >
Type InterlockedRead (Type *a)

Detailed Description

Contains template wrappers for the Interlocked* compiler intrinsics.


Function Documentation

template<class Type >
Type InterlockedExchange ( Type *  a,
Type  b 
)

Atomically updates a value

Parameters:
aPointer to a value to update
bValue to update with
Template Parameters:
Theinferred type of the values
Returns:
The original value pointed to by a
template<class Type >
Type InterlockedRead ( Type *  a)

Atomically reads a value from a memory location

Parameters:
aPointer to the value to read
Template Parameters:
Theinferred type of the value to read
Returns:
The value pointed to by a
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Defines