Skip to content

Commit 6321d36

Browse files
authored
Merge pull request snabbco#1012 from Igalia/ptree-busywait
Process tree runs data-plane processes with busywait=true by default
2 parents 38ab554 + 383fd83 commit 6321d36

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/lib/ptree/ptree.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ local manager_config_spec = {
4040
-- Could relax this requirement.
4141
initial_configuration = {required=true},
4242
schema_name = {required=true},
43-
worker_default_scheduling = {default={busywait=true}},
43+
worker_default_scheduling = {default={}},
4444
default_schema = {},
4545
log_level = {default=default_log_level},
4646
rpc_trace_file = {},

src/lib/scheduling.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ local scheduling_opts = {
1616
cpu = {}, -- CPU index (integer).
1717
real_time = {}, -- Boolean.
1818
ingress_drop_monitor = {}, -- Action string: one of 'flush' or 'warn'.
19-
busywait = {}, -- Boolean.
19+
busywait = {default=true}, -- Boolean.
2020
j = {}, -- Profiling argument string, e.g. "p" or "v".
2121
eval = {} -- String.
2222
}
@@ -99,7 +99,7 @@ end
9999
function selftest ()
100100
print('selftest: lib.scheduling')
101101
loadstring(stage({}))()
102-
loadstring(stage({busywait=true}))()
102+
loadstring(stage({busywait=false}))()
103103
loadstring(stage({eval='print("lib.scheduling: eval test")'}))()
104104
print('selftest: ok')
105105
end

0 commit comments

Comments
 (0)