enqueueJob overloads
Declared in <bdlmt_threadpool.h>
Same as the preceding overload, moving functor into the queue.
int
enqueueJob(bslmf::MovableRef<Job> functor);
» more...
Enqueue the specified functor to be executed by the next available thread. Return 0 if enqueued successfully, and a non-zero value if queuing is currently disabled. The behavior is undefined unless functor is not "unset". See bsl::function for more information on functors.
int
enqueueJob(Job const& functor);
» more...
Enqueue the specified function to be executed by the next available thread. The specified userData pointer will be passed to the function by the processing thread. Return 0 if enqueued successfully, and a non-zero value if queuing is currently disabled.
int
enqueueJob(
ThreadPoolJobFunc function,
void* userData);
» more...