提交 dd1aa738 编写于 作者: A Akira Matsuda

Ivar += in MRI is thread safe

上级 5e0ef9ca
......@@ -835,7 +835,11 @@ def checkout_for_exclusive_access(checkout_timeout)
end
def with_new_connections_blocked
synchronize do
if defined?(JRUBY_VERSION)
synchronize do
@threads_blocking_new_connections += 1
end
else
@threads_blocking_new_connections += 1
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册