SCM Library
Spherical Cube Map rendering library
 All Classes Files Functions Variables Friends Pages
Public Member Functions | List of all members
scm_guard< T > Class Template Reference

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.
 
get () const
 Atomically get the guarded value.
 

Detailed Description

template<typename T>
class scm_guard< T >

The scm_guard template enforces mutual exclusion on a single value of its templated type.


The documentation for this class was generated from the following file: