예제 #1
0
        void quit ()
        {
            TScopedLock  lock( _work_cond );

            _end      = true;
            _job      = NULL;
            _data_ptr = NULL;

            _work_cond.signal();
        }
예제 #2
0
        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();
        }
예제 #3
0
    void quit ()
	{
	    _work_cond.lock();

	    _end      = true;
	    _job      = NULL;
	    _data_ptr = NULL;

	    _work_cond.signal();
	    _work_cond.unlock();
	}
예제 #4
0
    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();
	}