adds cpp file for thread