mirror of
https://github.com/apple/container.git
synced 2026-09-11 18:25:41 +00:00
While individual accesses were properly mutex-protected, the logical operations were not atomic, leading to a potential inconsistency in a multi-threaded environment. Multiple separate `state.withLock` calls created race windows. With the proposed changes, single atomic operations check and update the state together.