[#BloombergLP-bdlmt-ThreadPool-enqueueJob-0a] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlmt.adoc[bdlmt]::xref:BloombergLP/bdlmt/ThreadPool.adoc[ThreadPool]::enqueueJob :relfileprefix: ../../../ :mrdocs: 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>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int enqueueJob(xref:BloombergLP/bdlmt/ThreadPool/Job.adoc[Job] const& functor); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#