[#BloombergLP-bdlmt-FixedThreadPool-tryEnqueueJob-0d] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlmt.adoc[bdlmt]::xref:BloombergLP/bdlmt/FixedThreadPool.adoc[FixedThreadPool]::tryEnqueueJob :relfileprefix: ../../../ :mrdocs: `tryEnqueueJob` overloads == Synopses Declared in `<bdlmt_fixedthreadpool.h>` Same as the preceding overload, moving `functor` into the queue. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int xref:BloombergLP/bdlmt/FixedThreadPool/tryEnqueueJob-0a0.adoc[tryEnqueueJob](xref:BloombergLP/bslmf/MovableRef.adoc[bslmf::MovableRef<Job>] functor); ---- [.small]#xref:BloombergLP/bdlmt/FixedThreadPool/tryEnqueueJob-0a0.adoc[_» more..._]# 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. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int xref:BloombergLP/bdlmt/FixedThreadPool/tryEnqueueJob-09.adoc[tryEnqueueJob](xref:BloombergLP/bdlmt/FixedThreadPool/Job.adoc[Job] const& functor); ---- [.small]#xref:BloombergLP/bdlmt/FixedThreadPool/tryEnqueueJob-09.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 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 `function` is not null. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int xref:BloombergLP/bdlmt/FixedThreadPool/tryEnqueueJob-0a5.adoc[tryEnqueueJob]( xref:BloombergLP/bdlmt/FixedThreadPoolJobFunc.adoc[FixedThreadPoolJobFunc] function, void* userData); ---- [.small]#xref:BloombergLP/bdlmt/FixedThreadPool/tryEnqueueJob-0a5.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#