|
GDAL
|
Job queue. More...
#include <cpl_worker_thread_pool.h>
Public Member Functions | |
| CPLWorkerThreadPool * | GetPool () |
| Return the owning worker thread pool. | |
| bool | SubmitJob (CPLThreadFunc pfnFunc, void *pData) |
| Queue a new job. More... | |
| void | WaitCompletion (int nMaxRemainingJobs=0) |
| Wait for completion of part or whole jobs. More... | |
Job queue.
| bool CPLJobQueue::SubmitJob | ( | CPLThreadFunc | pfnFunc, |
| void * | pData | ||
| ) |
Queue a new job.
| pfnFunc | Function to run for the job. |
| pData | User data to pass to the job function. |
| void CPLJobQueue::WaitCompletion | ( | int | nMaxRemainingJobs = 0 | ) |
Wait for completion of part or whole jobs.
| nMaxRemainingJobs | Maximum number of pendings jobs that are allowed in the queue after this method has completed. Might be 0 to wait for all jobs. |