605 throw std::runtime_error(
"Number of threads cannot be changed in the middle of writing a file");
607 gLog <<
___err___ <<
"ERROR - Number of threads cannot be changed in the middle of writing a file" << std::endl;
613 #ifdef HAVE_BOOST_THREAD 614 unsigned int num_available_cores = boost::thread::hardware_concurrency();
616 unsigned int num_available_cores = std::thread::hardware_concurrency();
617 if (num_available_cores == 0)
618 num_available_cores = sysconf(_SC_NPROCESSORS_ONLN);
621 if (num_available_cores == 0)
622 num_available_cores = 1;
625 if (num > num_available_cores)
626 num = num_available_cores>2 ? num_available_cores-2 : 1;
int32_t fNumQueues
Current number of threads that will be used by this object.
std::vector< Queue< CompressionTarget > > fCompressionQueues
Processing queues (=threads)
bool CompressBuffer(const CompressionTarget &target)