BloombergLP::bdlmt::FixedThreadPool::enqueueJob

enqueueJob overloads

Synopses

Declared in <bdlmt_fixedthreadpool.h>

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

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

Enqueue functor for execution by a worker thread.

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

Enqueue function with userData for execution by a worker thread.

int
enqueueJob(
    FixedThreadPoolJobFunc function,
    void* userData);
» more...

Return Value

0 on success, and a non-zero value otherwise

Parameters

NameDescription
functorjob to execute, moved into the queue
functionjob function to enqueue
userDataopaque pointer passed to function