# Fix another LockViolation case on Windows \(\#14162\) · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/dc18b8174ae6dacb3bc32fc842363159916bd657)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: dc18b8174ae6dacb3bc32fc842363159916bd657

Requested commit: dc18b8174ae6dacb3bc32fc842363159916bd657

Commit: dc18b8174ae6dacb3bc32fc842363159916bd657

Tree: d81a4d9313c698fb101ae14c02d093e33a197467

Author: Casey Banner

Committer: Andrew Kelley

## Message

```
Fix another LockViolation case on Windows (#14162)

- Add an assert that an exclusive lock is help to writeManifest
- Only call writeManifest in updateCObject if an exclusive lock is held
- cache: fixup test to verify hits don't take an exclusive lock, instead of writing the manifest
```

## Parents

- [7d538d6e536aedc3d71c806b8831c73bb5dd0c62](https://git.cafe/gitcafe/zig/commit/7d538d6e536aedc3d71c806b8831c73bb5dd0c62?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/dc18b8174ae6dacb3bc32fc842363159916bd657?format=markdown)
