简体   繁体   中英

Thread-local storage (TLS) and OpenMP

What does OpenMP (eg Intel C++ 12 implementation) currently do with the TLS variables declared with __thread in Linux and __declspec(thread) on Windows? Does it make them threadprivate or just ignores TLS?

Found one related paper, but still confused.

http://ieeexplore.ieee.org/xpls/abs_all.jsp?arnumber=1639501&tag=1

从我的经验,__thread用于实现OpenMP的线程专用( 页面上MSDN还提到)在许多编译器(VC,GCC,ICC)。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM