Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

set thread priority using options[:nice] value

  • Loading branch information...
commit d18b8211b1d648c8eb5b66ab3e7d277761eb2e9d 1 parent 8389758
Tom Anderson authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  lib/spawn.rb
1  lib/spawn.rb
View
@@ -204,6 +204,7 @@ def thread_it(options)
# run the long-running code block
yield
end
+ thr.priority = -options[:nice] if options[:nice]
return SpawnId.new(:thread, thr)
end
Please sign in to comment.
Something went wrong with that request. Please try again.