| 59 | } |
| 60 | |
| 61 | void start() { |
| 62 | VISAGE_ASSERT(!running()); |
| 63 | #if VISAGE_EMSCRIPTEN |
| 64 | VISAGE_ASSERT(false); |
| 65 | #endif |
| 66 | |
| 67 | if (running()) |
| 68 | return; |
| 69 | |
| 70 | should_run_ = true; |
| 71 | completed_ = false; |
| 72 | thread_ = std::make_unique<std::thread>(&Thread::startRun, this); |
| 73 | } |
| 74 | |
| 75 | void stop() { |
| 76 | should_run_ = false; |
no outgoing calls
no test coverage detected