[#BloombergLP-bdlmt-MultiQueueThreadPool-enqueueJob-05]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlmt.adoc[bdlmt]::xref:BloombergLP/bdlmt/MultiQueueThreadPool.adoc[MultiQueueThreadPool]::enqueueJob
:relfileprefix: ../../../
:mrdocs:

Enqueue the specified `functor` to the queue specified by `id`&period; Return 0 if enqueued successfully, and a non&hyphen;zero value if queuing is disabled&period; If passed by movable reference, the value of `functor` becomes unspecified but valid, and its allocator remains unchanged&period; The behavior is undefined unless `functor` is bound&period;

== Synopsis

Declared in `&lt;bdlmt&lowbar;multiqueuethreadpool&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
enqueueJob(
    int id,
    xref:BloombergLP/bdlmt/MultiQueueThreadPool/Job.adoc[Job] const& functor);
----


[.small]#Created with https://www.mrdocs.com[MrDocs]#
