| 419 | } |
| 420 | |
| 421 | static void dmLogThread(void* args) |
| 422 | { |
| 423 | dmLogServer* server = g_dmLogServer; |
| 424 | |
| 425 | volatile bool run = true; |
| 426 | while (run) |
| 427 | { |
| 428 | // NOTE: We have support for blocking dispatch in dmMessage |
| 429 | // but we have to wait for both new messages and on sockets. |
| 430 | // Currently no support for that and hence the sleep here |
| 431 | dmTime::Sleep(1000 * 30); |
| 432 | dmLogUpdateNetwork(); |
| 433 | dmMessage::Dispatch(server->m_MessageSocket, dmLogDispatch, (void*) &run); |
| 434 | } |
| 435 | } |
| 436 | |
| 437 | void LogInitialize(const LogParams* params) |
| 438 | { |
nothing calls this directly
no test coverage detected