Drain queued and executing jobs without disabling this pool.
Synopsis
Declared in <bdlmt_fixedthreadpool.h>
void
drain();
Description
Wait until the underlying queue is empty without disabling this pool (and may thus wait indefinitely), and then wait until all executing jobs complete. If the thread pool was not already started (isStarted() is false), this method has no effect. Note that if any jobs are submitted concurrently with this method, this method may or may not wait until they have also completed.
Created with MrDocs