[#BloombergLP-bdlmt-ThreadMultiplexor-processJob]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlmt.adoc[bdlmt]::xref:BloombergLP/bdlmt/ThreadMultiplexor.adoc[ThreadMultiplexor]::processJob
:relfileprefix: ../../../
:mrdocs:

Process the specified `job` functor in the calling thread if the current number of processors is less than the maximum number of processors&period; Otherwise, enqueue `job` to the pending job queue&period; Return 0 on success, and a non&hyphen;zero value otherwise&period; Note that the only requirements on `t&lowbar;JOBTYPE` are that it defines `operator()`, having a `void` return type, and that it defines a copy constructor&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class t&lowbar;JOBTYPE&gt;
int
processJob(t&lowbar;JOBTYPE const& job);
----


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