Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

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

README.md

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

Releases

No releases published

Packages

No packages published
You can’t perform that action at this time.