diff options
| author | Matthew Lugg <mlugg@mlugg.co.uk> | 2025-12-15 17:07:50 +0000 |
|---|---|---|
| committer | Matthew Lugg <mlugg@mlugg.co.uk> | 2025-12-21 13:07:03 +0000 |
| commit | b4ee54b5804b8afb0387a36c913a2cd8cf595409 (patch) | |
| tree | ee9dd3e02280bdf424772f097b1fb917bdd89eef /lib/std/Build/WebServer.zig | |
| parent | 6ed5b620507aa4589d6c6fe3a5e48e166d48b3d2 (diff) | |
| download | zig-b4ee54b5804b8afb0387a36c913a2cd8cf595409.tar.gz zig-b4ee54b5804b8afb0387a36c913a2cd8cf595409.zip | |
std.Io: reimplement Mutex and Condition atop futex
This work was partially cherry-picked from Andrew's WIP std.fs branch.
However, I also analyzed and simplified the Mutex and Condition
implementations, and brought them in line with modern Zig style.
Co-authored-by: Andrew Kelley <andrew@ziglang.org>
Diffstat (limited to 'lib/std/Build/WebServer.zig')
| -rw-r--r-- | lib/std/Build/WebServer.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/std/Build/WebServer.zig b/lib/std/Build/WebServer.zig index 4d649e6f9b..2c865a8889 100644 --- a/lib/std/Build/WebServer.zig +++ b/lib/std/Build/WebServer.zig @@ -122,8 +122,8 @@ pub fn init(opts: Options) WebServer { .update_id = .init(0), .runner_request_mutex = .init, - .runner_request_ready_cond = .{}, - .runner_request_empty_cond = .{}, + .runner_request_ready_cond = .init, + .runner_request_empty_cond = .init, .runner_request = null, }; } |
