void quit () { TScopedLock lock( _work_cond ); _end = true; _job = NULL; _data_ptr = NULL; _work_cond.signal(); }
void run_job ( TPool::TJob * j, void * p, const bool del = false ) { TScopedLock lock( _work_cond ); _job = j; _data_ptr = p; _del_job = del; _work_cond.signal(); }
void quit () { _work_cond.lock(); _end = true; _job = NULL; _data_ptr = NULL; _work_cond.signal(); _work_cond.unlock(); }
void run_job ( TThreadPool::TJob * j, void * p, const bool del = false ) { _work_cond.lock(); _job = j; _data_ptr = p; _del_job = del; _work_cond.signal(); _work_cond.unlock(); }