osgEarth 2.1.1
|
Public Member Functions | |
T & | get () |
const T & | get () const |
Private Attributes | |
std::map< OpenThreads::Thread *, T > | _data |
OpenThreads::Mutex | _mutex |
Template for per-thread data storage
Definition at line 298 of file ThreadingUtils.
T& osgEarth::Threading::PerThread< T >::get | ( | ) | [inline] |
Definition at line 300 of file ThreadingUtils.
{ ScopedMutexLock lock(_mutex); return _data[OpenThreads::Thread::CurrentThread()]; }
const T& osgEarth::Threading::PerThread< T >::get | ( | ) | const [inline] |
Definition at line 304 of file ThreadingUtils.
{ ScopedMutexLock lock(_mutex); return _data[OpenThreads::Thread::CurrentThread()]; }
std::map<OpenThreads::Thread*,T> osgEarth::Threading::PerThread< T >::_data [private] |
Definition at line 309 of file ThreadingUtils.
OpenThreads::Mutex osgEarth::Threading::PerThread< T >::_mutex [private] |
Definition at line 310 of file ThreadingUtils.