diff options
author | 卜部昌平 <[email protected]> | 2020-07-28 10:58:37 +0900 |
---|---|---|
committer | Kazuhiro NISHIYAMA <[email protected]> | 2020-08-31 18:08:57 +0900 |
commit | b674fc9ca2498d55c7e4f91592279eb985b8bea1 () | |
tree | 8a9f31a1f8b035e41e57878d7e9d75b3f6e6ac43 /prelude.rb | |
parent | eb9342d3483babdf47179b84ccc947fc93a40233 (diff) |
Thread.exclusive: delete
Has been deprecated since 2069c9e031fc968d6d3d0fe30a9316851e4d91d8. [Feature #17125][ruby-core:99636]
-rw-r--r-- | prelude.rb | 15 |
1 files changed, 0 insertions, 15 deletions
@@ -1,18 +1,3 @@ -class << Thread - # call-seq: - # Thread.exclusive { block } -> obj - # - # Wraps the block in a single, VM-global Mutex.synchronize, returning the - # value of the block. A thread executing inside the exclusive section will - # only block other threads which also use the Thread.exclusive mechanism. - def exclusive(&block) end if false - mutex = Mutex.new # :nodoc: - define_method(:exclusive) do |&block| - warn "Thread.exclusive is deprecated, use Thread::Mutex", uplevel: 1 - mutex.synchronize(&block) - end -end - class Binding # :nodoc: def irb |