File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ def value(timeout = nil)
78
78
else
79
79
# this function has been optimized for performance and
80
80
# should not be modified without running new benchmarks
81
- mutex . synchronize do
81
+ synchronize do
82
82
execute = @computing = true unless @computing
83
83
if execute
84
84
begin
@@ -140,7 +140,7 @@ def wait(timeout = nil)
140
140
# @yield the delayed operation to perform
141
141
# @return [true, false] if success
142
142
def reconfigure ( &block )
143
- mutex . synchronize do
143
+ synchronize do
144
144
raise ArgumentError . new ( 'no block given' ) unless block_given?
145
145
unless @computing
146
146
@task = block
@@ -170,7 +170,7 @@ def execute_task_once # :nodoc:
170
170
# this function has been optimized for performance and
171
171
# should not be modified without running new benchmarks
172
172
execute = task = nil
173
- mutex . synchronize do
173
+ synchronize do
174
174
execute = @computing = true unless @computing
175
175
task = @task
176
176
end
@@ -183,7 +183,7 @@ def execute_task_once # :nodoc:
183
183
rescue => ex
184
184
reason = ex
185
185
end
186
- mutex . synchronize do
186
+ synchronize do
187
187
set_state ( success , result , reason )
188
188
event . set
189
189
end
You can’t perform that action at this time.
0 commit comments