Do not unlock the mutex when emitting the signal because it might unlock...
Do not unlock the mutex when emitting the signal because it might unlock another thread which could cause a race condition. To avoid a deadlock when a signal callback calls an API function that does a g_mutex_lock while the lock is already taken. Change the mutex into a recursive mutex
Please register or sign in to comment