__declspec(thread)

From RAD Studio
Jump to: navigation, search

Go Up to Keywords, Alphabetical Listing Index


Category

Modifiers (C++), Keyword Extensions, Storage Class Specifiers (C++)

Syntax

__declspec( thread ) declarator

The thread extended storage-class modifier is used to declare a thread local variable.

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

Alternative declaration (see sysmac.h): DELPHITHREAD.

See also