| 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); |
nothing calls this directly
no test coverage detected