BloombergLP::bdlmt::MultiQueueThreadPool::numElements

numElements overloads

Synopses

Declared in <bdlmt_multiqueuethreadpool.h>

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

int
numElements() const;
» more...

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

int
numElements(int id) const;
» more...

Return Value

  • instantaneous snapshot of the total number of elements enqueued
  • number of elements in the queue, or -1 if id is invalid

Parameters

NameDescription
idqueue identifier