Logo Search packages:      
Sourcecode: pan version File versions  Download package

WorkerPool::WorkerPool ( int  num_threads = -1,
bool  exclusive = false 
)

Creates a pool of worker threads.

Parameters:
num_threads -1 means no limit
exclusive if true, don't share threads with other pools

Definition at line 31 of file worker-pool.cc.

{
  assert ((!exclusive || n>0) && "can't have unlimited exclusive threads!");
  tpool = g_thread_pool_new (Worker::worker_thread_func, this, n, exclusive, 0);
}


Generated by  Doxygen 1.6.0   Back to index