BloombergLP::bdlmt::MultiQueueThreadPool_Queue::setBatchSize

Configure this queue to process jobs in groups of the specified batchSize (see {Job Execution Batch Size}). When a thread is selecting jobs for processing, if fewer than batchSize jobs are available then only the available jobs will be processed in the current batch. The behavior is undefined unless 1 <= batchSize. Note that the initial value for the execution batch size is 1 for all queues.

Synopsis

Declared in <bdlmt_multiqueuethreadpool.h>

void
setBatchSize(int batchSize);