Return the batch size of queue id, or ‐1 if invalid.

Synopsis

Declared in <bdlmt_multiqueuethreadpool.h>

int
batchSize(int id) const;

Description

Return an instantaneous snapshot of the execution batch size (see []Execution Batch Size)) of the queue associated with the specified id, or ‐1 if id is not a valid queue id. 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.

Return Value

execution batch size of the queue, or ‐1 if id is not a valid queue id

Parameters

Name

Description

id

queue identifier

Created with MrDocs