C++11 thread_local in gcc - alternatives

后端 未结 4 799
孤街浪徒
孤街浪徒 2020-12-19 09:34

As I can see at: http://gcc.gnu.org/projects/cxx0x.html thread_local keyword is unfortunately unsupported in gcc yet.

Are there any alternatives for that? I don\'t w

4条回答
  •  醉酒成梦
    2020-12-19 09:47

    The gcc compiler has a storage class __thread that might be close enough.

    http://gcc.gnu.org/onlinedocs/gcc-3.3.1/gcc/Thread-Local.html

提交回复
热议问题