Destructor
| 171 | |
| 172 | //! Destructor |
| 173 | ~ThreadQueue() { |
| 174 | this->stop(); |
| 175 | // Cleanup threads |
| 176 | for (auto it = threads_.begin(); it != threads_.end(); ++it) { |
| 177 | delete *it; |
| 178 | } |
| 179 | } |
| 180 | |
| 181 | //! operator [] |
| 182 | ThreadWorker &operator[](size_t i) { |