nano-node
nano-node copied to clipboard
work_pool: move stopping from destructor to stop function
The work_pool starts a number of threads and joins them in the destructor. This is pattern we want to break. We want to have a separate stop stage before destruction. This change makes work_pool follow the new pattern.