RAD Studio
ContentsIndex
PreviousUpNext
__declspec(thread)

Category 

Modifiers, Keyword extensions, Storage class specifiers 

Syntax  

__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) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!