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 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

@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

Leave a Comment

Please sign in to add a comment. Not a member? Join today