MCPcopy Create free account
hub / github.com/defold/defold / dmLogThread

Function dmLogThread

engine/dlib/src/dlib/log.cpp:421–435  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

419}
420
421static 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
437void LogInitialize(const LogParams* params)
438{

Callers

nothing calls this directly

Calls 3

dmLogUpdateNetworkFunction · 0.85
SleepFunction · 0.70
DispatchFunction · 0.70

Tested by

no test coverage detected