| 47 | // ---------------------------------------------------------------------------------------- |
| 48 | |
| 49 | void multithreaded_object:: |
| 50 | clear ( |
| 51 | ) |
| 52 | { |
| 53 | auto_mutex M(m_); |
| 54 | stop(); |
| 55 | wait(); |
| 56 | dead_threads.clear(); |
| 57 | is_running_ = false; |
| 58 | should_stop_ = false; |
| 59 | } |
| 60 | |
| 61 | // ---------------------------------------------------------------------------------------- |
| 62 |