[#BloombergLP-bdlmt-MultiQueueThreadPool_Queue-setBatchSize]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlmt.adoc[bdlmt]::xref:BloombergLP/bdlmt/MultiQueueThreadPool_Queue.adoc[MultiQueueThreadPool&lowbar;Queue]::setBatchSize
:relfileprefix: ../../../
:mrdocs:

Configure this queue to process jobs in groups of the specified `batchSize` (see &lcub;`Job Execution Batch Size`&rcub;)&period; 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&period; The behavior is undefined unless `1 &lt;&equals; batchSize`&period; Note that the initial value for the execution batch size is 1 for all queues&period;

== Synopsis

Declared in `&lt;bdlmt&lowbar;multiqueuethreadpool&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
setBatchSize(int batchSize);
----


[.small]#Created with https://www.mrdocs.com[MrDocs]#
