RAD Studio |  |

__declspec(thread)

Category

Modifiers, Keyword extensions, Storage class specifiers

Syntax

Copy Code

    __declspec( thread ) declarator

Thread Local Storage (TLS) is the method by which each thread in a given multithreaded process allocates storage for thread-specific data.

The thread extended storage-class modifier is used to declare a thread local variable. The thread attribute must be used with the __declspec keyword.

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!