C++11 concurrency instead of pthread