add cond to ThreadPool