g_mutex_init(&handle->lock);
g_cond_init(&handle->cond);
- handle->worker = g_thread_try_new(NULL, (GThreadFunc) thread_func, handle, NULL);
+ handle->worker = g_thread_try_new("worker thread", (GThreadFunc) thread_func, handle, NULL);
if (!handle->worker) {
MM_RM_ERROR("Failed to create worker thread");
_mm_resource_manager_mloop_destroy(handle);