#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. | |
| 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.
1.5.1