mirror of
https://github.com/ziglang/zig.git
synced 2026-01-03 12:03:19 +00:00
Multiple processes can sit waiting for the exclusive lock at the same time, so we want to recheck whether it needs to be updated whenever we get an exclusive lock. This also fixes a race condition between one process truncating the cache file and another process reading it without atomic locking.