safe_roller.cpp File Reference

#include "roller.cpp"
#include "safe_roller.h"
#include <basis/function.h>
#include <basis/mutex.h>
#include <data_struct/static_memory_gremlin.h>

Include dependency graph for safe_roller.cpp:

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

Go to the source code of this file.

Functions

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


Function Documentation

void 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 28 04:30:10 2008 for HOOPLE Libraries by  doxygen 1.5.1