File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ const needs_kludge = switch (builtin.target.os.tag) {
22
22
else = > false ,
23
23
};
24
24
25
- const single_threaded = builtin .single_threaded or aio .options .max_threads == 1 ;
25
+ const single_threaded = builtin .single_threaded or aio .options .max_threads == 0 ;
26
26
const needs_source = ! single_threaded or (needs_kludge and ! builtin .single_threaded );
27
27
28
28
tqueue : TimerQueue , // timer queue implementing linux -like timers
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ const WindowsOperation = struct {
57
57
win_state : State , // windows specific state
58
58
};
59
59
60
- const single_threaded = builtin .single_threaded or aio .options .max_threads == 1 ;
60
+ const single_threaded = builtin .single_threaded or aio .options .max_threads == 0 ;
61
61
62
62
iocp : Iocp ,
63
63
posix_pool : if (! single_threaded ) DynamicThreadPool else void , // thread pool for performing non iocp operations
You can’t perform that action at this time.
0 commit comments