-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add linux.percpu api #213
base: master
Are you sure you want to change the base?
add linux.percpu api #213
Conversation
stop(env.threads, script) | ||
end) | ||
rcu.map(env.runtimes, function (name) | ||
stop(env.runtimes, name) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why don't we need to stop percpu here as well?
function runner.percpu(script, ...) | ||
local script = trim(script) | ||
local runtimes = {} | ||
local args = {...} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we don't need this, right? couldn't we just pass ...
along?
function runner.run(script, ...) | ||
local script = trim(script) | ||
if env.runtimes[script] then | ||
local function runtime_name(script, cpu) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I found it a bit misnomer.. not sure if it would be cleaner to use script .. ":" .. cpu
directly in place..
No description provided.