end the start_loop routine
| 1641 | |
| 1642 | // end the start_loop routine |
| 1643 | void terminate() { |
| 1644 | std::unique_lock<std::mutex> lock(mutex_tasks); |
| 1645 | running = false; |
| 1646 | condition_tasks.notify_all(); |
| 1647 | } |
| 1648 | |
| 1649 | /** |
| 1650 | * Main loop consists of these steps: |