BloombergLP::bdlmt::MultipriorityThreadPool::enqueueJob

enqueueJob overloads

Synopses

Declared in <bdlmt_multiprioritythreadpool.h>

Enqueue the specified job at the specified priority.

int
enqueueJob(
    ThreadFunctor const& job,
    int priority);
» more...

Enqueue a C-style job function at the specified priority.

int
enqueueJob(
    bslmt_ThreadFunction jobFunction,
    void* jobData,
    int priority);
» more...

Return Value

0 if the job was enqueued, and a non-zero value otherwise

Parameters

NameDescription
jobfunctor to be executed by a worker thread
priorityjob priority; 0 is most urgent
jobFunctionC-style function invoked as the job
jobDatapointer passed as the sole argument to jobFunction