enqueueJob overloads
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...
0 if the job was enqueued, and a non-zero value otherwise
| 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 |