Return the number of elements in the queue with the specified id.
Synopsis
Declared in <bdlmt_multiqueuethreadpool.h>
int
numElements(int id) const;
Description
Return an instantaneous snapshot of the number of elements enqueued in the queue associated with the specified id as a non‐negative integer, or ‐1 if id does not specify a valid queue.
Return Value
number of elements in the queue, or ‐1 if id is invalid
Parameters
Name |
Description |
id |
queue identifier |
Created with MrDocs