* @brief Stop the event thread. * * This thread can be used to make sure the client remains responsive * if it registers for some events and then goes to sleep. * (E.g. in a keyboard input handler or a GUI message loop). * * This thread is started by default for remote connections * and embedded connections in a new thread. A client could * reasonably choose to turn it off so we'll expose the met
| 288 | * for starting and stopping. |
| 289 | *************************************************************/ |
| 290 | bool Kernel::StopEventThread() |
| 291 | { |
| 292 | // Shut down the event thread |
| 293 | if (!m_pEventThread) |
| 294 | { |
| 295 | return false ; |
| 296 | } |
| 297 | |
| 298 | m_pEventThread->Stop(true) ; |
| 299 | |
| 300 | return true ; |
| 301 | } |
| 302 | |
| 303 | /************************************************************* |
| 304 | * @brief Turning this on means we'll start dumping output about messages |