| author | |
| committer | |
| log | 9213aa789b4b44711f2747e5ab053a2b1f57a15b |
| tree | bfa889f03f3dc80430eb2e832da0bbbb53f8bff6 |
| parent | dd9782a8bc6f4af458a04cea2619f55e749c39ee |
1 files changed, 6 insertions(+), 1 deletions(-)
src/ThreadPool.zig+6-1| ... | ... | @@ -12,7 +12,12 @@ idle_queue: IdleQueue = .{}, |
| 12 | 12 | const IdleQueue = std.SinglyLinkedList(std.Thread.ResetEvent); |
| 13 | 13 | const RunQueue = std.SinglyLinkedList(Runnable); |
| 14 | 14 | const Runnable = struct { |
| 15 | runFn: fn (*Runnable) void, | |
| 15 | runFn: RunProto, | |
| 16 | }; | |
| 17 | ||
| 18 | const RunProto = switch (builtin.zig_backend) { | |
| 19 | .stage1 => fn (*Runnable) void, | |
| 20 | else => *const fn (*Runnable) void, | |
| 16 | 21 | }; |
| 17 | 22 | |
| 18 | 23 | const Worker = struct { |