[#BloombergLP-bdlmt-ThreadPool-enqueueJob-0e] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlmt.adoc[bdlmt]::xref:BloombergLP/bdlmt/ThreadPool.adoc[ThreadPool]::enqueueJob :relfileprefix: ../../../ :mrdocs: `enqueueJob` overloads == Synopses Declared in `<bdlmt_threadpool.h>` Same as the preceding overload, moving `functor` into the queue. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int xref:BloombergLP/bdlmt/ThreadPool/enqueueJob-0c.adoc[enqueueJob](xref:BloombergLP/bslmf/MovableRef.adoc[bslmf::MovableRef<Job>] functor); ---- [.small]#xref:BloombergLP/bdlmt/ThreadPool/enqueueJob-0c.adoc[_» 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. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int xref:BloombergLP/bdlmt/ThreadPool/enqueueJob-0a.adoc[enqueueJob](xref:BloombergLP/bdlmt/ThreadPool/Job.adoc[Job] const& functor); ---- [.small]#xref:BloombergLP/bdlmt/ThreadPool/enqueueJob-0a.adoc[_» 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. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int xref:BloombergLP/bdlmt/ThreadPool/enqueueJob-04.adoc[enqueueJob]( xref:BloombergLP/bdlmt/ThreadPoolJobFunc.adoc[ThreadPoolJobFunc] function, void* userData); ---- [.small]#xref:BloombergLP/bdlmt/ThreadPool/enqueueJob-04.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#