summaryrefslogtreecommitdiff
path: root/prelude.rb
diff options
context:
space:
mode:
authorKazuhiro NISHIYAMA <[email protected]>2019-10-12 13:25:52 +0900
committerKazuhiro NISHIYAMA <[email protected]>2019-10-12 13:25:52 +0900
commitd6e68bb263e79cb802fa683d9c4139ddca2fd4f5 ()
treebfd434dfb7dd40aef845d9731d7a576d1112e7e6 /prelude.rb
parentf6a666a1fcbb7076b57fe08bba758719cb68bdea (diff)
Use `warn` with `uplevel:` instead of `caller`
-rw-r--r--prelude.rb2
1 files changed, 1 insertions, 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
mutex.synchronize(&block)
end
end