mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Use qualified names
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56037 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
0df79477bd
commit
4b298ad77a
50 changed files with 100 additions and 93 deletions
|
@ -18,11 +18,11 @@ class Shell
|
|||
class ProcessController
|
||||
|
||||
@ProcessControllers = {}
|
||||
@ProcessControllersMonitor = Mutex.new
|
||||
@ProcessControllersCV = ConditionVariable.new
|
||||
@ProcessControllersMonitor = Thread::Mutex.new
|
||||
@ProcessControllersCV = Thread::ConditionVariable.new
|
||||
|
||||
@BlockOutputMonitor = Mutex.new
|
||||
@BlockOutputCV = ConditionVariable.new
|
||||
@BlockOutputMonitor = Thread::Mutex.new
|
||||
@BlockOutputCV = Thread::ConditionVariable.new
|
||||
|
||||
class << self
|
||||
extend Forwardable
|
||||
|
@ -97,8 +97,8 @@ class Shell
|
|||
@active_jobs = []
|
||||
@jobs_sync = Sync.new
|
||||
|
||||
@job_monitor = Mutex.new
|
||||
@job_condition = ConditionVariable.new
|
||||
@job_monitor = Thread::Mutex.new
|
||||
@job_condition = Thread::ConditionVariable.new
|
||||
end
|
||||
|
||||
attr_reader :shell
|
||||
|
@ -238,8 +238,8 @@ class Shell
|
|||
|
||||
|
||||
pid = nil
|
||||
pid_mutex = Mutex.new
|
||||
pid_cv = ConditionVariable.new
|
||||
pid_mutex = Thread::Mutex.new
|
||||
pid_cv = Thread::ConditionVariable.new
|
||||
|
||||
Thread.start do
|
||||
ProcessController.block_output_synchronize do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue