![]() | InDesign SDK 20.5 |
#include <IDThreading.h>

Public Member Functions | |
| ThreadLocal (const T &initialVal) | |
| T | Get () const |
| void | Set (T x) |
| ThreadLocal< T > & | operator= (T x) |
| ThreadLocal< T > & | operator+= (T x) |
| ThreadLocal< T > & | operator-= (T x) |
| ThreadLocal< T > & | operator++ () |
| ThreadLocal< T > & | operator-- () |
Platform independent thread local storage (TLS). It is built on top of the existing TLS offered by the OS and it uses a single slot in the TLS. Since the OS support for TLS is very limited, this class offers some nice features, like unlimited number of keys (limited only by the available memory), support for initial values, value semantics for certain operations, etc.
| inline |
Read access
| inline |
Assignment
| inline |
Write access