syncthing/lib/connections
Jakob Borg 31f64186ae lib/connections: More fine grained locking (fixes #3066)
This fixes the deadlock by reducing where we hold the various locks. To
start with it splits up the existing "mut" into a "listenersMut" and a
"curConMut" as these are the two things being protected and I can see no
relation between them that requires a shared lock. It also moves all
model calls outside of the lock, as I see no reason to hold the lock
while calling the model (and it's risky, as proven).

GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/3069
2016-05-09 15:03:12 +00:00
..
2016-05-04 19:38:12 +00:00
2016-05-04 19:38:12 +00:00
2016-05-04 19:38:12 +00:00
2016-05-04 19:38:12 +00:00
2016-05-04 19:38:12 +00:00