c++11 worker thread