add cond to threadpool