mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Use warn
with uplevel:
instead of caller
This commit is contained in:
parent
f6a666a1fc
commit
d6e68bb263
1 changed files with 1 additions and 1 deletions
|
@ -8,7 +8,7 @@ class << Thread
|
|||
def exclusive(&block) end if false
|
||||
mutex = Mutex.new # :nodoc:
|
||||
define_method(:exclusive) do |&block|
|
||||
warn "Thread.exclusive is deprecated, use Thread::Mutex", caller
|
||||
warn "Thread.exclusive is deprecated, use Thread::Mutex", uplevel: 1
|
||||
mutex.synchronize(&block)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue