The Nebula Device 3: Win360::Win360Interlocked Class Reference

The Nebula Device 3

Win360::Win360Interlocked Class Reference

#include <win360interlocked.h>

Inheritance diagram for Win360::Win360Interlocked:

Threading::Interlocked

Detailed Description

Provides simple atomic operations on shared variables.

(C) 2006 Radon Labs GmbH

Static Public Member Functions

static int Increment (int volatile &var)
 interlocked increment, return result
static int Decrement (int volatile &var)
 interlocked decrement, return result
static int 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