A quick git grep shows use of both boost::thread and pthread. C++14 has a thread_local keyword:
http://eel.is/c++draft/basic.stc.thread Do we know if the semantics of thread_local in C++14 are compatible with thread-locality in pthreads and boost::thread?