Library: Foundation
Package: Threading
Header: Poco/ThreadLocal.h
This class manages the local storage for each thread. Never use this class directly, always use the ThreadLocal template for managing thread local storage.
Member Functions: clear, current, get
Creates the TLS.
Deletes the TLS.
static void clear();
Clears the current thread's TLS object. Does nothing in the main thread.
static ThreadLocalStorage & current();
Returns the TLS object for the current thread (which may also be the main thread).
TLSAbstractSlot * & get(
const void * key
);
Returns the slot for the given key.