* @brief Start 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 me
| 262 | * for starting and stopping. |
| 263 | *************************************************************/ |
| 264 | bool Kernel::StartEventThread() |
| 265 | { |
| 266 | // This thread is used to listen for events from the kernel |
| 267 | // when the client is sleeping |
| 268 | if (!m_pEventThread) |
| 269 | { |
| 270 | return false ; |
| 271 | } |
| 272 | |
| 273 | m_pEventThread->Start() ; |
| 274 | |
| 275 | return true ; |
| 276 | } |
| 277 | |
| 278 | /************************************************************* |
| 279 | * @brief Stop the event thread. |