mirror of
https://github.com/syncthing/syncthing.git
synced 2026-01-29 16:22:43 -05:00
Here the event Logger is rewritten as a service with a main loop instead of mutexes. This loop has a select with essentially two legs: incoming events, and subscription changes. When both are possible select will chose one randomly, thus ensuring that in practice unsubscribes will happen timely and not block the system.