mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2024-11-05 09:36:19 +00:00
eb3e8ba677
When adding/removing observers, we locked on the observer, then acquired the global lock. When a metric is observed, then we acquire the global lock and then the observer lock. If these happen at the same time, we can easily end up with a deadlock. We simply avoid holding the observer lock for the entire add/remove process (instead only locking when actually needed). Closes #1639 |
||
---|---|---|
.. | ||
common | ||
common-api | ||
core | ||
core-api | ||
fabric | ||
fabric-api | ||
forge | ||
forge-api | ||
lints | ||
standalone | ||
web | ||
ARCHITECTURE.md |