| 347 | } |
| 348 | |
| 349 | inline |
| 350 | void TaskQueue::terminate() |
| 351 | { |
| 352 | bool value{false}; |
| 353 | if (_terminated.compare_exchange_strong(value, true)) |
| 354 | { |
| 355 | { |
| 356 | std::unique_lock<std::mutex> lock(_notEmptyMutex); |
| 357 | _isInterrupted = true; |
| 358 | } |
| 359 | _notEmptyCond.notify_all(); |
| 360 | _thread->join(); |
| 361 | } |
| 362 | } |
| 363 | |
| 364 | inline |
| 365 | IQueueStatistics& TaskQueue::stats() |
no test coverage detected