MCPcopy Create free account
hub / github.com/OSVR/OSVR-Core / start

Method start

apps/ClientMainloopThread.h:52–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50 }
51 }
52 void start() {
53 if (m_run || m_started) {
54 throw std::logic_error(
55 "Can't start if it's already started or if this is a re-start");
56 }
57 m_started = true;
58 m_run = true;
59 m_thread = boost::thread([&] {
60 while (m_run) {
61 oneLoop();
62 }
63 });
64 }
65
66 void oneLoop() {
67 m_mainloop.mainloop();

Callers 3

mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected