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.

Synopsis

Declared in <bdlmt_threadpool.h>

int
enqueueJob(Job const& functor);

Created with MrDocs