What does the thread_local mean in C++11?

Thread-local storage duration is a term used to refer to data that is seemingly global or static storage duration (from the viewpoint of the functions using it) but in actual fact, there is one copy per thread. It adds to the current automatic (exists during a block/function), static (exists for the program duration) and dynamic … Read more