aboutsummaryrefslogtreecommitdiffstats
path: root/prelude.rb
diff options
context:
space:
mode:
authorkosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-11-19 10:22:53 +0000
committerkosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-11-19 10:22:53 +0000
commit6c56dae4b23c5c50e351758538141ca26b9aba40 (patch)
tree18a5e9a00fe481c744c9ed5ef9cb559dab6647a9 /prelude.rb
parent58282ed667d720816366c9e45c3560904196d078 (diff)
downloadruby-6c56dae4b23c5c50e351758538141ca26b9aba40.tar.gz
* prelude.rb: Moved Mutex#synchronize to
* thread.c (rb_mutex_synchronize_m): here. [Bug #4266] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37724 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'prelude.rb')
-rw-r--r--prelude.rb16
1 files changed, 0 insertions, 16 deletions
diff --git a/prelude.rb b/prelude.rb
index 4b6ab1a677..2b371e7134 100644
--- a/prelude.rb
+++ b/prelude.rb
@@ -1,19 +1,3 @@
-class Mutex
- # call-seq:
- # mutex.synchronize { ... }
- #
- # Obtains a lock, runs the block, and releases the lock when the
- # block completes. See the example under Mutex.
- def synchronize
- self.lock
- begin
- yield
- ensure
- self.unlock rescue nil
- end
- end
-end
-
class Thread
MUTEX_FOR_THREAD_EXCLUSIVE = Mutex.new # :nodoc: