| 146 | } |
| 147 | #elif mxLinux |
| 148 | static 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 |
| 164 | static unsigned int __stdcall ServiceThreadLoop(void* it) |
| 165 | { |
nothing calls this directly
no test coverage detected