diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2022-12-06 20:35:50 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2022-12-06 20:38:54 -0700 |
| commit | 50eb7983cde6e07d2613a6f3ab164ca055d9306f (patch) | |
| tree | be9361a684543867bf3fd1711e64c7974660d074 /src/ThreadPool.zig | |
| parent | c8aba15c222e5bb8cf5d2d48678761197f564351 (diff) | |
| download | zig-50eb7983cde6e07d2613a6f3ab164ca055d9306f.tar.gz zig-50eb7983cde6e07d2613a6f3ab164ca055d9306f.zip | |
remove most conditional compilation based on stage1
There are still a few occurrences of "stage1" in the standard library
and self-hosted compiler source, however, these instances need a bit
more careful inspection to ensure no breakage.
Diffstat (limited to 'src/ThreadPool.zig')
| -rw-r--r-- | src/ThreadPool.zig | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/ThreadPool.zig b/src/ThreadPool.zig index 7115adbddd..980bacf94f 100644 --- a/src/ThreadPool.zig +++ b/src/ThreadPool.zig @@ -15,10 +15,7 @@ const Runnable = struct { runFn: RunProto, }; -const RunProto = switch (builtin.zig_backend) { - .stage1 => fn (*Runnable) void, - else => *const fn (*Runnable) void, -}; +const RunProto = *const fn (*Runnable) void; pub fn init(pool: *ThreadPool, allocator: std.mem.Allocator) !void { pool.* = .{ |
