threadvars

Top  Previous  Next

What is translated > Variables > threadvars

 

In Delphi the keyword threadvar is used to declare variables using the thread-local storage.

 

threadvar

 x: Integer;

 

C++Builder as well as gcc have an according keyword __thread::

 

int __thread x;

 

Visual C++ uses:

 

declspec(thread) int x;

 

 

 

 



This page belongs to the Delphi2Cpp Documentation

Delphi2Cpp home  Content