#include <thread.h>
Public Methods | |
ThreadKey () | |
Create a unique thread specific container. More... | |
virtual | ~ThreadKey () |
Destroy a thread specific container and any contents reserved. More... | |
void * | getKey (void) |
Get the value of the pointer for the thread specific data container. More... | |
void | setKey (void *) |
Set the value of the pointer for the current thread specific execution context. More... |
Finally, Common C++ supports a thread-safe "AtomicCounter" class. This can often be used for reference counting without having to protect the counter with a separate Mutex counter. This lends to lighter-weight code.
|
Create a unique thread specific container.
|
|
Destroy a thread specific container and any contents reserved.
|
|
Get the value of the pointer for the thread specific data container. A unique pointer can be set for each execution context.
|
|
Set the value of the pointer for the current thread specific execution context. This can be used to store thread context specific data.
|