|
Equalizer 1.0
|
Implements thread-specific storage for C++ objects. More...
#include <perThread.h>
Inheritance diagram for co::base::PerThread< T >:
Collaboration diagram for co::base::PerThread< T >:Public Member Functions | |
| PerThread () | |
| Construct a new per-thread variable. | |
| ~PerThread () | |
| Destruct the per-thread variable. | |
| PerThread< T > & | operator= (const T *data) |
| Assign an object to the thread-local storage. | |
| PerThread< T > & | operator= (const PerThread< T > &rhs) |
| Assign an object from another thread-local storage. | |
| T * | get () |
| const T * | get () const |
| T * | operator-> () |
| Access the thread-local object. | |
| const T * | operator-> () const |
| Access the thread-local object. | |
| T & | operator* () |
| const T & | operator* () const |
| bool | operator== (const PerThread &rhs) const |
| bool | operator== (const T *rhs) const |
| bool | operator!= (const T *rhs) const |
| bool | operator! () const |
| bool | isValid () const |
Protected Member Functions | |
| virtual void | notifyExecutionStopping () |
| Notify that the execution unit is about to stop. | |
Implements thread-specific storage for C++ objects.
The object is deleted on thread exit.
To instantiate the template code for this class, applications have to include pthread.h before this file. pthread.h is not automatically included to avoid hard to resolve type conflicts with other header files on Windows.
Definition at line 43 of file perThread.h.
| co::base::PerThread< T >::PerThread | ( | ) |
Construct a new per-thread variable.
| co::base::PerThread< T >::~PerThread | ( | ) |
Destruct the per-thread variable.
| T* co::base::PerThread< T >::get | ( | ) |
Referenced by co::base::PerThread< T >::operator==().
Here is the caller graph for this function:| const T* co::base::PerThread< T >::get | ( | ) | const |
| bool co::base::PerThread< T >::isValid | ( | ) | const |
| virtual void co::base::PerThread< T >::notifyExecutionStopping | ( | ) | [protected, virtual] |
Notify that the execution unit is about to stop.
Reimplemented from co::base::ExecutionListener.
| bool co::base::PerThread< T >::operator! | ( | ) | const |
| bool co::base::PerThread< T >::operator!= | ( | const T * | rhs | ) | const [inline] |
Definition at line 90 of file perThread.h.
| const T& co::base::PerThread< T >::operator* | ( | ) | const [inline] |
Definition at line 70 of file perThread.h.
References co::base::className().
Here is the call graph for this function:| T& co::base::PerThread< T >::operator* | ( | ) | [inline] |
Definition at line 67 of file perThread.h.
References co::base::className().
Here is the call graph for this function:| const T* co::base::PerThread< T >::operator-> | ( | ) | const |
Access the thread-local object.
| T* co::base::PerThread< T >::operator-> | ( | ) |
Access the thread-local object.
| PerThread<T>& co::base::PerThread< T >::operator= | ( | const PerThread< T > & | rhs | ) |
Assign an object from another thread-local storage.
| PerThread<T>& co::base::PerThread< T >::operator= | ( | const T * | data | ) |
Assign an object to the thread-local storage.
| bool co::base::PerThread< T >::operator== | ( | const T * | rhs | ) | const [inline] |
Definition at line 84 of file perThread.h.
| bool co::base::PerThread< T >::operator== | ( | const PerThread< T > & | rhs | ) | const [inline] |
Definition at line 77 of file perThread.h.
References co::base::PerThread< T >::get().
Here is the call graph for this function:
1.0 by
1.7.3