2012-08-26 4 views
4

Linux에서 __thread 및 Windows에서 __declspec (thread)로 선언 된 TLS 변수로 OpenMP (예 : Intel C++ 12 구현)의 현재 기능은 무엇입니까? threadprivate로 만들거나 TLS를 무시합니까?스레드 로컬 저장소 (TLS) 및 OpenMP

하나의 관련 논문을 찾았지만 여전히 혼란 스럽습니다.

내 경험에서

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

+0

http://stackoverflow.com/questions/19980937/openmp-and-thread-local-storage-identifier-with-icc –

답변

2

, __thread는의 OpenMP threadprivate 컴파일러의 수 (VC, GCC, ICC)에서 (또한 언급 MSDN에 this 페이지)를 구현하는 데 사용됩니다.