MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / fxWorkerLoop

Function fxWorkerLoop

modules/base/worker/pcWorker.c:66–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64
65#if mxLinux
66static gpointer fxWorkerLoop(gpointer it)
67{
68 txWorker* worker = it;
69 GMainContext* main_context = g_main_context_new();
70 g_main_context_push_thread_default(main_context);
71 fxWorkerInitialize(worker);
72 worker->main_loop = g_main_loop_new(main_context, FALSE);
73 g_main_loop_run(worker->main_loop);
74 g_main_loop_unref(worker->main_loop);
75 worker->main_loop = NULL;
76 fxWorkerTerminate(worker);
77 g_main_context_pop_thread_default(main_context);
78 g_main_context_unref(main_context);
79 return NULL;
80}
81#elif mxWindows
82static unsigned int __stdcall fxWorkerLoop(void* it)
83{

Callers

nothing calls this directly

Calls 2

fxWorkerInitializeFunction · 0.85
fxWorkerTerminateFunction · 0.85

Tested by

no test coverage detected