mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
0f5ba08fd2
When a setting is set it locks the Settings mutex and emits a signal for that setting. If a slot is connected to that signal and lives on the same thread as Settings, it is executed immediately with the Settings mutex still locked. That slot can then lock a series of other mutexes. During this time another thread can lock a mutex and then try to read settings, which will cause a deadlock due to the opposite order of multiple mutex locking. By always emitting signals after unlocking the Settings mutex, we avoid holding the Settings mutex while executing slots. Fix #6218 |
||
---|---|---|
.. | ||
chatlog | ||
core | ||
model | ||
net | ||
persistence | ||
platform | ||
video | ||
widget | ||
friendlist.cpp | ||
friendlist.h | ||
grouplist.cpp | ||
grouplist.h | ||
ipc.cpp | ||
ipc.h | ||
loginscreen.ui | ||
main.cpp | ||
mainwindow.ui | ||
nexus.cpp | ||
nexus.h |