Move std::thread_local::*
into std::thread
#909
Merged
std::thread_local::*
into std::thread
#909