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

Method stop

src/osvr/Server/ServerImpl.cpp:137–146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

135 void ServerImpl::awaitShutdown() { m_thread.join(); }
136
137 void ServerImpl::stop() {
138 boost::unique_lock<boost::mutex> lock(m_runControl);
139 if (m_everStarted) {
140 m_run.signalAndWaitForShutdown();
141 m_thread.join();
142 m_thread = boost::thread();
143 } else {
144 m_orderedDestruction();
145 }
146 }
147
148 void ServerImpl::signalStop() {
149 boost::unique_lock<boost::mutex> lock(m_runControl);

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected