Thread-local storage support on Windows

Thread-local storage support on Windows

How is the Thread-local storage support on Windows, I ask since I read the Wikipedia page on TLS and it implicitly says that the TLS __thread keyword is only for Intel C++ compilers on Linux

4 Beiträge / 0 neu
Letzter Beitrag
Nähere Informationen zur Compiler-Optimierung finden Sie in unserem Optimierungshinweis.

@Jim I though TLS was compiler specific, the article you linked to is for the Visual Studio compiler, or? This question is for the ICC not the MSVC.

ICC recognizes __declspec( thread ) when compiling on Windows.

Consider using "#define __thread __declspec( thread )" when on Windows

Jim Dempsey

Kommentar hinterlassen

Bitte anmelden, um einen Kommentar hinzuzufügen. Sie sind noch nicht Mitglied? Jetzt teilnehmen