| author | |
| committer | |
| log | ff883dd6ce910e2a0aa301e1ee84d93f53cf8765 |
| tree | 1256ce4d1e128a359db8fb5543c085a6fe3901f8 |
| parent | 8eaebf5939491b005e392698ec6e890ebaf0f86b |
1 files changed, 1 insertions(+), 1 deletions(-)
lib/std/Io/Threaded.zig+1-1| ... | ... | @@ -490,7 +490,7 @@ fn async( |
| 490 | 490 | start: *const fn (context: *const anyopaque, result: *anyopaque) void, |
| 491 | 491 | ) ?*Io.AnyFuture { |
| 492 | 492 | const t: *Threaded = @ptrCast(@alignCast(userdata)); |
| 493 | if (t.cpu_count == 1) { | |
| 493 | if (t.cpu_count == 1 or builtin.single_threaded) { | |
| 494 | 494 | start(context.ptr, result.ptr); |
| 495 | 495 | return null; |
| 496 | 496 | } |