eq::base::PerThreadRef< T > Class Template Reference
Thread-specific storage for a RefPtr.
More...
#include <perThreadRef.h>
List of all members.
Detailed Description
template<typename T>
class eq::base::PerThreadRef< T >
Thread-specific storage for a RefPtr.
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 39 of file perThreadRef.h.
Constructor & Destructor Documentation
Construct a new per-thread RefPtr.
- Version:
- 1.0
Destruct a per-thread RefPtr.
- Version:
- 1.0
Member Function Documentation
Assign a RefPtr to the thread-local storage.
- Version:
- 1.0
- Returns:
- the RefPtr from the thread-local storage.
- Version:
- 1.0
- Returns:
- the C pointer of the RefPtr from the thread-local storage.
- Version:
- 1.0
- Returns:
- the object held by the RefPtr in the thread-local storage.
- Version:
- 1.0
- Returns:
- the object held by the RefPtr in the thread-local storage.
- Version:
- 1.0
- Returns:
- true if the two objects hold the same C pointer.
- Version:
- 1.0
Definition at line 87 of file perThreadRef.h.
- Returns:
- true if the two objects hold the same C pointer.
- Version:
- 1.0
Definition at line 94 of file perThreadRef.h.
- Returns:
- true if the thread-local storage holds a 0 pointer.
- Version:
- 1.0
- Returns:
- true if the thread-local storage holds a non-0 pointer.
- Version:
- 1.0
The documentation for this class was generated from the following file: