Enqueue the specified functor to be executed by the next available thread. Return 0 on success, and a non‐zero value otherwise. Specifically, return e_SUCCESS on success, e_DISABLED if !isEnabled(), e_FULL if isEnabled() and the underlying queue was full, and e_FAILED if an error occurs. The behavior is undefined unless functor is not null.

Synopsis

Declared in <bdlmt_fixedthreadpool.h>

int
tryEnqueueJob(Job const& functor);

Created with MrDocs