public
Description: Remote multi-server automation tool
Homepage: http://www.capify.org
Clone URL: git://github.com/jamis/capistrano.git
Use Monitor rather Mutex, so fetch() is reentrant


git-svn-id: http://svn.rubyonrails.org/rails/tools/capistrano@7130 
5ecf4fe2-1ee6-0310-87b1-e25e094e27de
jamis (author)
Tue Jun 26 19:24:34 -0700 2007
commit  90b390bcc4849848e7166004d574152bac7fb10f
tree    8917fe0a9196713ca0869bb37449c295644701dd
parent  2f4399a8cf9736319dee9397f3756a3a8ddcff9f
...
1
 
2
3
4
...
98
99
100
101
 
102
103
104
...
 
1
2
3
4
...
98
99
100
 
101
102
103
104
0
@@ -1,4 +1,4 @@
0
-require 'thread'
0
+require 'monitor'
0
 
0
 module Capistrano
0
   class Configuration
0
@@ -98,7 +98,7 @@ module Capistrano
0
         initialize_without_variables(*args)
0
         @variables = {}
0
         @original_procs = {}
0
- @variable_lock = Mutex.new
0
+ @variable_lock = Monitor.new
0
 
0
         set :ssh_options, {}
0
         set :logger, logger

Comments

    No one has commented yet.