|
libcommonc++
0.7
|
Thread-local data buffer. More...
#include <ThreadLocalBuffer.h++>


Public Member Functions | |
| ThreadLocalBuffer (size_t size) | |
| Construct a new ThreadLocalBuffer with the given size. More... | |
| virtual | ~ThreadLocalBuffer () |
| Destructor. More... | |
| Buffer< T > & | operator* () |
| Pointer-dereference operator. More... | |
| Buffer< T > * | operator-> () |
| Pointer operator. More... | |
| void | setValue (Buffer< T > *value) |
| Set the value of the thread-local object for the calling thread. More... | |
| Buffer< T > * | getValue () |
| Get the value of the thread-local object for the calling thread. More... | |
Static Public Member Functions | |
| static int | getSlotCount () |
| Get the maximum number of thread-local storage slots available on this platform. More... | |
Protected Member Functions | |
| Buffer< T > * | initialValue () |
| Provide the intial value of the thread-local object for the calling thread. More... | |
Thread-local data buffer.
The buffer exists as a separate instance for each calling thread.
|
inline |
Construct a new ThreadLocalBuffer with the given size.
| size | The size of the buffer, in bytes. |
|
inlinevirtual |
Destructor.
|
staticinherited |
Get the maximum number of thread-local storage slots available on this platform.
A return value of -1 indicates that there is no limit.
|
inherited |
Get the value of the thread-local object for the calling thread.
|
inlineprotectedvirtual |
Provide the intial value of the thread-local object for the calling thread.
The default implementation returns NULL.
Reimplemented from ThreadLocal< Buffer< T > >.
|
inherited |
Pointer-dereference operator.
| NullPointerException | If the value of the object was never initialized for the calling thread. |
|
inherited |
Pointer operator.
| NullPointerException | If the value of the object was never initialized for the calling thread. |
|
inherited |
Set the value of the thread-local object for the calling thread.
| value | The new value. |