| |||
| Home > Compiler-specific Features > __declspec(thread) | |||
The __declspec(thread) attribute asserts
that variables are thread-local and have thread storage duration,
so that the linker arranges for the storage to be allocated automatically
when a thread is created.
The keyword __thread is supported as a
synonym for __declspec(thread).