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

Function ServiceThreadLoop

modules/piu/PC/piuService.c:148–162  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

146}
147#elif mxLinux
148static gpointer ServiceThreadLoop(gpointer it)
149{
150 ServiceThread thread = it;
151 GMainContext* main_context = g_main_context_new();
152 GMainLoop* main_loop;
153 g_main_context_push_thread_default(main_context);
154 ServiceThreadInitialize(thread, NULL);
155 main_loop = g_main_loop_new(main_context, FALSE);
156 g_mutex_unlock(&(thread->mutex));
157 g_main_loop_run(main_loop);
158 g_main_loop_unref(main_loop);
159 g_main_context_pop_thread_default(main_context);
160 g_main_context_unref(main_context);
161 return NULL;
162}
163#elif mxWindows
164static unsigned int __stdcall ServiceThreadLoop(void* it)
165{

Callers

nothing calls this directly

Calls 1

ServiceThreadInitializeFunction · 0.85

Tested by

no test coverage detected