The Nebula Device 3: OSX::OSXInterlocked Class Reference

The Nebula Device 3

OSX::OSXInterlocked Class Reference

#include <osxinterlocked.h>


Detailed Description

Provides simple atomic operations on shared variables.

(C) 2010 Radon Labs GmbH

Static Public Member Functions

static int Increment (int volatile &var)
 interlocked increment
static int Decrement (int volatile &var)
 interlocked decrement
static void Add (int volatile &var, int add)
 interlocked add
static int Exchange (int volatile *dest, int value)
 interlocked exchange
static int CompareExchange (int volatile *dest, int exchange, int comparand)
 interlocked compare-exchange