aboutsummaryrefslogtreecommitdiff
path: root/src/ThreadPool.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2022-12-06 20:35:50 -0700
committerAndrew Kelley <andrew@ziglang.org>2022-12-06 20:38:54 -0700
commit50eb7983cde6e07d2613a6f3ab164ca055d9306f (patch)
treebe9361a684543867bf3fd1711e64c7974660d074 /src/ThreadPool.zig
parentc8aba15c222e5bb8cf5d2d48678761197f564351 (diff)
downloadzig-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.zig5
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.* = .{