diff options
author | 卜部昌平 <shyouhei@ruby-lang.org> | 2020-07-28 10:58:37 +0900 |
---|---|---|
committer | Kazuhiro NISHIYAMA <zn@mbf.nifty.com> | 2020-08-31 18:08:57 +0900 |
commit | b674fc9ca2498d55c7e4f91592279eb985b8bea1 (patch) | |
tree | 8a9f31a1f8b035e41e57878d7e9d75b3f6e6ac43 /prelude.rb | |
parent | eb9342d3483babdf47179b84ccc947fc93a40233 (diff) |
Thread.exclusive: delete
Has been deprecated since 2069c9e031fc968d6d3d0fe30a9316851e4d91d8.
[Feature #17125][ruby-core:99636]
Diffstat (limited to 'prelude.rb')
-rw-r--r-- | prelude.rb | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/prelude.rb b/prelude.rb index be249af751..b1e477a3ea 100644 --- a/prelude.rb +++ b/prelude.rb @@ -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 |