Blocks until all threads are finished. Shutdown does not need to have been called, since it may be called on a separate thread.
| 133 | /// Blocks until all threads are finished. Shutdown does not need to have been called, |
| 134 | /// since it may be called on a separate thread. |
| 135 | void Join() { |
| 136 | threads_.JoinAll(); |
| 137 | } |
| 138 | |
| 139 | uint32_t GetQueueSize() const { |
| 140 | return work_queue_.Size(); |