BloombergLP::bdlmt::FixedThreadPool::tryEnqueueJob

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

Synopsis

Declared in <bdlmt_fixedthreadpool.h>

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

Return Value

0 on success, and a non-zero value if the queue is full or disabled

Parameters

NameDescription
functorjob to execute, moved into the queue