add threadpass.cpp