summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorick Peterse <yorickpeterse@gmail.com>2014-04-01 20:18:27 +0200
committerAndre Arko <andre@arko.net>2014-07-17 22:24:07 -0700
commitfd314d49916e74d49715c1a8d490c8ce894a585f (patch)
tree99493fccb4d8ed0fbdbf535da9edb6e99df9ecb0
parent9759dc5cf0c3f6ef9c7fbfeed9851e5aaad205df (diff)
downloadbundler-fd314d49916e74d49715c1a8d490c8ce894a585f.tar.gz
Use ThreadWorker on Rubinius.
Rubinius doesn't have a GIL and has proper support for threading. As such Bundler can use the ThreadWorker class instead of the UnixWorker class.
-rw-r--r--lib/bundler/parallel_workers.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler/parallel_workers.rb b/lib/bundler/parallel_workers.rb
index 3071b49ac1..b28f630461 100644
--- a/lib/bundler/parallel_workers.rb
+++ b/lib/bundler/parallel_workers.rb
@@ -8,7 +8,7 @@ module Bundler
autoload :ThreadWorker, "bundler/parallel_workers/thread_worker"
def self.worker_pool(size, job)
- if Bundler.current_ruby.mswin? || Bundler.current_ruby.jruby?
+ if Bundler.current_ruby.mswin? || Bundler.current_ruby.jruby? || Bundler.current_ruby.rbx?
ThreadWorker.new(size, job)
else
UnixWorker.new(size, job)