BloombergLP::bdlmt::MultiQueueThreadPool::addJobAtFront

addJobAtFront overloads

Synopses

Declared in <bdlmt_multiqueuethreadpool.h>

Same as the preceding overload, moving functor into the queue.

int
addJobAtFront(
    int id,
    bslmf::MovableRef<Job> functor);
» more...

Enqueue functor at the front of the queue id.

int
addJobAtFront(
    int id,
    Job const& functor);
» more...

Return Value

0 if added successfully, and a non-zero value if queuing is disabled

Parameters

NameDescription
idqueue identifier
functorjob to move to the front of the queue