Block until all executing jobs and pending jobs enqueued to this multi-priority thread pool complete. This method does not affect the enabled/disabled state of this thread pool. If this thread pool is enabled and jobs are enqueued during draining, this method may return before all enqueued jobs are executed. The behavior is undefined if:
Declared in <bdlmt_multiprioritythreadpool.h>
void
drainJobs();
* this method is called while this thread pool is stopped or suspended, or * this method is called concurrently with a call to the removeJobs method, or * this method is called by one of the threads belonging to this thread pool.
Note that, in these cases, such undefined behavior may include deadlock.