Skip to content

takumakume/mruby-renice

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

mruby-renice Build Status

getpriority(2)/setpriority(2) for mruby, it like renice(1)

install by mrbgems

  • add conf.gem line to build_config.rb
MRuby::Build.new do |conf|

    # ... (snip) ...

    conf.gem :github => 'takumakume/mruby-renice'
end

usage

  • for process

    Renice::Process.get(pid)
    #=> 0
    
    Renice::Process.set(pid, prio)
    #=> true or raise
  • for process group

    Renice::ProcessGroup.get(pgid)
    Renice::ProcessGroup.set(pgid, prio)
  • for process group

    Renice::User.get(uid)
    Renice::User.set(uid, prio)

License

under the MIT License:

  • see LICENSE file

About

getpriority(2)/setpriority(2) for mruby, it like renice(1)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published