BloombergLP::bdlmt::MultiQueueThreadPool::numProcessedReset

Reset and return processed/enqueued/deleted counts.

Synopsis

Declared in <bdlmt_multiqueuethreadpool.h>

void
numProcessedReset(
    int* numExecuted,
    int* numEnqueued,
    int* numDeleted = 0);

Description

Load into the specified numExecuted and numEnqueued the number of items dequeued / enqueued (respectively) since the last time these values were reset and reset these values. Optionally specify a numDeleted used to load into the number of items deleted since the last time this value was reset. Reset the count of deleted items.

Parameters

NameDescription
numExecutedreceives the number of items dequeued, then reset
numEnqueuedreceives the number of items enqueued, then reset
numDeletedif non-null, receives the number of items deleted, then reset