multithread c++11 delete files