Stop the thread. */
| 77 | |
| 78 | /** Stop the thread. */ |
| 79 | void EventLoop::stop() |
| 80 | { |
| 81 | if(thread_ != 0) |
| 82 | { |
| 83 | shutdown_ = true; |
| 84 | thread_->join(); |
| 85 | delete thread_; |
| 86 | thread_ = 0; |
| 87 | usb_context_ = 0; |
| 88 | } |
| 89 | } |
| 90 | |
| 91 | /** Execute the job, until shut down. */ |
| 92 | void EventLoop::execute() |
no test coverage detected