[#BloombergLP-bdlmt-MultiQueueThreadPool-addJobAtFront-0b]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlmt.adoc[bdlmt]::xref:BloombergLP/bdlmt/MultiQueueThreadPool.adoc[MultiQueueThreadPool]::addJobAtFront
:relfileprefix: ../../../
:mrdocs:

`addJobAtFront` overloads

== Synopses

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

Same as the preceding overload, moving `functor` into the queue&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
xref:BloombergLP/bdlmt/MultiQueueThreadPool/addJobAtFront-046.adoc[addJobAtFront](
    int id,
    xref:BloombergLP/bslmf/MovableRef.adoc[bslmf::MovableRef&lt;Job&gt;] functor);
----

[.small]#xref:BloombergLP/bdlmt/MultiQueueThreadPool/addJobAtFront-046.adoc[_» more&period;&period;&period;_]#

Enqueue `functor` at the front of the queue `id`&period;


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

[.small]#xref:BloombergLP/bdlmt/MultiQueueThreadPool/addJobAtFront-047.adoc[_» more&period;&period;&period;_]#

== Return Value

0 if added successfully, and a non&hyphen;zero value if queuing is disabled

== Parameters

[cols="1,4"]
|===
| Name| Description
| *id*
| queue identifier
| *functor*
| job to move to the front of the queue
|===


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