BloombergLP::bdlmt::ThreadPool::enqueueJob

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

Synopsis

Declared in <bdlmt_threadpool.h>

int
enqueueJob(bslmf::MovableRef<Job> functor);

Return Value

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

Parameters

NameDescription
functorjob to move onto the queue