diff options
| author | Linus Groh <mail@linusgroh.de> | 2023-05-20 23:11:53 +0100 |
|---|---|---|
| committer | Linus Groh <mail@linusgroh.de> | 2023-05-25 20:17:07 +0100 |
| commit | ba35eeb417e4d54ce4c559871b9330bc95afc053 (patch) | |
| tree | 280c28c4deda5fb30b84e84128caa0999a631b89 /lib/std/Build/Cache.zig | |
| parent | 4159add4abe92e903d8797a005344d8325def2fc (diff) | |
| download | zig-ba35eeb417e4d54ce4c559871b9330bc95afc053.tar.gz zig-ba35eeb417e4d54ce4c559871b9330bc95afc053.zip | |
std.fs.file: Rename File.Lock enum values to snake case
Diffstat (limited to 'lib/std/Build/Cache.zig')
| -rw-r--r-- | lib/std/Build/Cache.zig | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/std/Build/Cache.zig b/lib/std/Build/Cache.zig index e991aff5b5..4db8f18a31 100644 --- a/lib/std/Build/Cache.zig +++ b/lib/std/Build/Cache.zig @@ -408,7 +408,7 @@ pub const Manifest = struct { if (self.cache.manifest_dir.createFile(&manifest_file_path, .{ .read = true, .truncate = false, - .lock = .Exclusive, + .lock = .exclusive, .lock_nonblocking = self.want_shared_lock, })) |manifest_file| { self.manifest_file = manifest_file; @@ -418,7 +418,7 @@ pub const Manifest = struct { error.WouldBlock => { self.manifest_file = try self.cache.manifest_dir.openFile(&manifest_file_path, .{ .mode = .read_write, - .lock = .Shared, + .lock = .shared, }); break; }, @@ -885,7 +885,7 @@ pub const Manifest = struct { // Here we intentionally have a period where the lock is released, in case there are // other processes holding a shared lock. manifest_file.unlock(); - try manifest_file.lock(.Exclusive); + try manifest_file.lock(.exclusive); } self.have_exclusive_lock = true; return true; |
