diff options
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 |