enqueueJob overloads

Synopses

Declared in <bdlmt_multiprioritythreadpool.h>

Enqueue the specified job at the specified priority.

int
enqueueJob(
    ThreadFunctor const& job,
    int priority);

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

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

Return Value

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

Parameters

Name

Description

job

functor to be executed by a worker thread

priority

job priority; 0 is most urgent

jobFunction

C‐style function invoked as the job

jobData

pointer passed as the sole argument to jobFunction

Created with MrDocs