Wait until all jobs in the queue with the specified id finish.
Declared in <bdlmt_multiqueuethreadpool.h>
int
drainQueue(int id);
Wait until all jobs in the queue indicated by the specified id are finished. This method simply waits until that queue is empty, without disabling the queue; it may thus wait indefinitely if more jobs are being added. The queue may be enabled or disabled when this method is called. Return 0 on success, and a non-zero value if the specified queue does not exist or is deleted while this method is waiting. Note that this method waits by repeatedly yielding.
0 on success, and a non-zero value if the queue does not exist or is deleted while waiting
| Name | Description |
|---|---|
| id | queue identifier |