| 176 | } |
| 177 | |
| 178 | void ServerImpl::registerMainloopMethod(MainloopMethod f) { |
| 179 | if (f) { |
| 180 | m_callControlled([&] { m_mainloopMethods.push_back(f); }); |
| 181 | } |
| 182 | } |
| 183 | |
| 184 | void ServerImpl::update() { |
| 185 | boost::unique_lock<boost::mutex> lock(m_runControl); |