TCInterlocked.h File Reference

Defines the namespace TC::Interlocked. More...

#include "TCTypes.h"

Include dependency graph for TCInterlocked.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


Namespaces

namespace  TC
namespace  TC::Interlocked
 Methods for interlocked modifying of integer values.

Typedefs

typedef long TC::Interlocked::Type
 Data type for interlockee operations.

Functions

Type TC::Interlocked::Increment (Type &target)
 The function increments (increases by one) the value of the specified variable.
Type TC::Interlocked::Decrement (Type &target)
 The function decrements (decreases by one) the value of the specified variable.
Type TC::Interlocked::Exchange (Type &target, sint32 new_value)
 The function atomically exchanges a pair of values.
Type TC::Interlocked::Add (Type &target, sint32 value_to_add)
 The function performs an atomic addition of an increment value to an addend variable.


Detailed Description

Defines the namespace TC::Interlocked.

Author:
Thomas Goessler

Definition in file TCInterlocked.h.


Copyright (c) Thomas Goessler 2003 - 2008