Cleanup CommonScheduleThread.cpp