Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
Automatically generated thread-local storage key. More...
|Acquire a unique thread-local storage key. |
|operator FXThreadStorageKey () const|
|Return the thread-local storage key. |
|void||set (void *ptr) const|
|Set thread local storage associated with this key. |
|void *||get () const|
|Get thread local storage associated with this key. |
|Release thread-local storage key. |
Automatically generated thread-local storage key.
This class manages a thread-local storage key, generating a new one when constructed, and deleting the storage key when destroyed; FXAutoThreadStorageKey is typically used to declare global variables to be used as thread-local storage keys. These keys can be used just like FXThreadStorageKey itself by virtue of the conversion operator. Note that no assignment or copy-constructors have been defined; thus each instance of this class represents a unique thread-local storage key.
|Copyright © 1997-2013 Jeroen van der Zijp|