safe_roller.h File Reference

#include "mechanisms_dll.h"

Include dependency graph for safe_roller.h:

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

Go to the source code of this file.

Classes

class  safe_roller
 Implements a thread-safe roller object. More...

Functions

void MECHANISMS_FUNCTION_STYLE safe_add (int &to_change, int addition)
 thread-safe integer addition.


Function Documentation

void MECHANISMS_FUNCTION_STYLE safe_add ( int &  to_change,
int  addition 
)

thread-safe integer addition.

the number passed in "addition" is atomically added to the number referenced in "to_change". this allows thread-safe manipulation of a simple number.

Definition at line 27 of file safe_roller.cpp.


Generated on Fri Nov 21 04:31:13 2008 for HOOPLE Libraries by  doxygen 1.5.1