You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I discovered build option "task-migration", so I thought, I am using each zio runtime only within one thread, without workers. There is nothing to be stolen by anyone. I'll just disable that option.
But I am getting compile error
zig-pkg/zio-0.16.0-xHbVVGNDIwDYoZmY7GkL3RMCKuyc4JjK2hv_4TOBx8x2/src/utils/local_run_queue.zig:212:29: error: steal() is unavailable: this queue was built without task migration / work stealing
if (!stealable) @compileError("steal() is unavailable: this queue was built without task migration / work stealing");
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
referenced by:
stealWork: zig-pkg/zio-0.16.0-xHbVVGNDIwDYoZmY7GkL3RMCKuyc4JjK2hv_4TOBx8x2/src/runtime.zig:734:37
parkAndSearch: zig-pkg/zio-0.16.0-xHbVVGNDIwDYoZmY7GkL3RMCKuyc4JjK2hv_4TOBx8x2/src/runtime.zig:689:31
run: zig-pkg/zio-0.16.0-xHbVVGNDIwDYoZmY7GkL3RMCKuyc4JjK2hv_4TOBx8x2/src/runtime.zig:588:82
runWorker: zig-pkg/zio-0.16.0-xHbVVGNDIwDYoZmY7GkL3RMCKuyc4JjK2hv_4TOBx8x2/src/runtime.zig:1315:32
callFn__anon_58953: /opt/zig-x86_64-linux-0.16.0/lib/std/Thread.zig:422:13
entryFn: /opt/zig-x86_64-linux-0.16.0/lib/std/Thread.zig:752:30
spawn__anon_58914: /opt/zig-x86_64-linux-0.16.0/lib/std/Thread.zig:773:21
spawn__anon_34649: /opt/zig-x86_64-linux-0.16.0/lib/std/Thread.zig:349:32
initStatic: zig-pkg/zio-0.16.0-xHbVVGNDIwDYoZmY7GkL3RMCKuyc4JjK2hv_4TOBx8x2/src/runtime.zig:1161:53
I made sure that the runWorker is never hit in runtime by using .{ .executors = .exact(1), .thread_pool = .{ .max_threads = 0 } } which results in 0 workers. But I can not compile with .@"task-migration" = false, and the compile error is in place that wouldn't be reached at runtime.
Is what I am trying to do something that should be supported, or am I just trying something that shouldn't be done?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I discovered build option "task-migration", so I thought, I am using each zio runtime only within one thread, without workers. There is nothing to be stolen by anyone. I'll just disable that option.
But I am getting compile error
I made sure that the
runWorkeris never hit in runtime by using.{ .executors = .exact(1), .thread_pool = .{ .max_threads = 0 } }which results in 0 workers. But I can not compile with.@"task-migration" = false,and the compile error is in place that wouldn't be reached at runtime.Is what I am trying to do something that should be supported, or am I just trying something that shouldn't be done?
All reactions