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

Method mainloop

apps/ClientMainloop.h:47–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45 typedef boost::unique_lock<mutex_type> lock_type;
46 ClientMainloop(osvr::clientkit::ClientContext &ctx) : m_ctx(ctx) {}
47 void mainloop() {
48 lock_type lock(m_mutex, boost::try_to_lock);
49 if (lock) {
50 m_ctx.update();
51 }
52 }
53 mutex_type &getMutex() { return m_mutex; }
54
55 private:

Callers 2

oneLoopMethod · 0.45
mainFunction · 0.45

Calls 1

updateMethod · 0.45

Tested by

no test coverage detected