The destructor waits for the pool to finish executing functions.
| 52 | |
| 53 | // The destructor waits for the pool to finish executing functions. |
| 54 | ~fork_join_pool() |
| 55 | { |
| 56 | stop_threads(); |
| 57 | threads_.wait(); |
| 58 | } |
| 59 | |
| 60 | private: |
| 61 | friend class fork_executor; |