| 64 | |
| 65 | #if mxLinux |
| 66 | static 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 |
| 82 | static unsigned int __stdcall fxWorkerLoop(void* it) |
| 83 | { |
nothing calls this directly
no test coverage detected