BloombergLP::bdlmt::MultiQueueThreadPool::enqueueJob

enqueueJob overloads

Synopses

Declared in <bdlmt_multiqueuethreadpool.h>

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

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

Enqueue functor on the queue id.

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

Return Value

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

Parameters

NameDescription
idqueue identifier
functorjob to move onto the queue