我对thread_localC++ 11中的描述感到困惑.我的理解是,每个线程在函数中都有唯一的局部变量副本.所有线程都可以访问全局/静态变量(可能使用锁进行同步访问).和thread_local变量的所有线程都是可见的,但只能由他们为其定义线程修改?这是对的吗?
thread_local
c++ multithreading thread-local thread-local-storage c++11
c++ ×1
c++11 ×1
multithreading ×1
thread-local ×1
thread-local-storage ×1