c++ - What is the current state of support for 'thread_local' across platforms? -
i'd summary of current state of support 'thread_local' keyword across different compilers , platforms.
i'm interested in common desktop , mobile platforms. information find seems spotty @ best reports of working on platforms , not on others or mentions of support being wip. answers confirm support (or lack of support) single platforms welcome. please mention caveats support if there any.
- windows (gcc, clang, msvc)
- linux (gcc, clang)
- os x (gcc, clang)
- android (gcc, clang)
- ios
- blackberry
- windows phone/rt/etc
in complement other excellent answer: msvc 2013 doesn't support it.
this page on support of core language features claims it's partially supported. however, looking @ details appears that:
thread-local storage listed "partial" because vc has provided non-standard extension __declspec(thread) many years. (notably, c++11 thread_local supports non-pods, __declspec(thread) doesn't.)
it's implemented in msvc 2014 ctp 3 (since summer 2014; see blog entry) , available in msvs2015.
Comments
Post a Comment