SCM Library
Spherical Cube Map rendering library
|
The scm_guard template enforces mutual exclusion on a single value of its templated type. More...
#include <scm-guard.hpp>
Public Member Functions | |
scm_guard (T d) | |
Create the mutex for this guard. | |
~scm_guard () | |
Destroy this guard's mutex. | |
void | set (T d) |
Atomically set the guarded value. | |
T | get () const |
Atomically get the guarded value. | |
The scm_guard template enforces mutual exclusion on a single value of its templated type.