Execute the job, until shut down. */
| 90 | |
| 91 | /** Execute the job, until shut down. */ |
| 92 | void EventLoop::execute() |
| 93 | { |
| 94 | this_thread::set_name("USB"); |
| 95 | timeval t; |
| 96 | t.tv_sec = 0; |
| 97 | t.tv_usec = 100000; |
| 98 | |
| 99 | while(!shutdown_) |
| 100 | { |
| 101 | libusb_handle_events_timeout_completed(reinterpret_cast<libusb_context *>(usb_context_), &t, 0); |
| 102 | } |
| 103 | } |
| 104 | |
| 105 | } /* namespace usb */ |
| 106 | } /* namespace libfreenect2 */ |
no test coverage detected