numElements overloads

Synopses

Declared in <bdlmt_multiqueuethreadpool.h>

Return an instantaneous snapshot of the total number of elements enqueued.

int
numElements() const;

Return the number of elements in the queue with the specified id.

int
numElements(int id) const;

Return Value

  • instantaneous snapshot of the total number of elements enqueued

  • number of elements in the queue, or ‐1 if id is invalid

Parameters

Name

Description

id

queue identifier

Created with MrDocs