Skip to content
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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

add linux.percpu api #213

wants to merge 2 commits into from

Conversation

sav
Copy link
Collaborator

@sav sav commented Dec 3, 2024

No description provided.

@sav sav requested a review from lneto December 3, 2024 21:48
stop(env.threads, script)
end)
rcu.map(env.runtimes, function (name)
stop(env.runtimes, name)
Copy link
Contributor

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 = {...}
Copy link
Contributor

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)
Copy link
Contributor

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..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants