class Poco::ThreadLocalStorage
Overview
This class manages the local storage for each thread. More…
#include <ThreadLocal.h> class ThreadLocalStorage { public: // methods TLSAbstractSlot*& get(const void* key); static ThreadLocalStorage& current(); static void clear(); };
Detailed Documentation
This class manages the local storage for each thread.
Never use this class directly, always use the ThreadLocal template for managing thread local storage.
Construction
~ThreadLocalStorage()
Deletes the TLS.
Methods
TLSAbstractSlot*& get(const void* key)
Returns the slot for the given key.
static ThreadLocalStorage& current()
Returns the TLS object for the current thread (which may also be the main thread).
static void clear()
Clears the current thread’s TLS object.
Does nothing in the main thread.