| 71 | } |
| 72 | |
| 73 | void ActionQueue::Stop() |
| 74 | { |
| 75 | _stop = true; |
| 76 | _cv.notify_all(); |
| 77 | if (std::this_thread::get_id() == _thread.get_id()) { |
| 78 | return; |
| 79 | } |
| 80 | |
| 81 | if (_thread.joinable()) { |
| 82 | _thread.join(); |
| 83 | } |
| 84 | } |
| 85 | |
| 86 | bool ActionQueue::IsRunning() const |
| 87 | { |
no outgoing calls
no test coverage detected