From 5b238e8dc7fd55622c4e0a382b9783648ba412f5 Mon Sep 17 00:00:00 2001 From: kosaki Date: Mon, 26 Nov 2012 15:17:01 +0000 Subject: * thread.c (rb_mutex_trylock, rb_mutex_unlock, mutex_sleep): raises ThreadError if called from trap handler as Thread#join. * NEWS: news fot the above. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37867 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- NEWS | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'NEWS') diff --git a/NEWS b/NEWS index 61ab041883..ac7adc3761 100644 --- a/NEWS +++ b/NEWS @@ -105,6 +105,12 @@ with all sufficient information, see the ChangeLog file. * Module#const_get accepts a qualified constant string, e.g. Object.const_get("Foo::Bar::Baz") + * Mutex + * incompatible changes: + * Mutex#lock, Mutex#unlock, Mutex#try_lock, Mutex#synchronize + and Mutex#sleep no longer allows to be used from trap handler. + Now it raises ThreadError. + * NilClass * added method: * added nil.to_h which returns {} @@ -350,3 +356,7 @@ with all sufficient information, see the ChangeLog file. * Thread#join See above. + + * Mutex#lock, Mutex#unlock, Mutex#try_lock, Mutex#synchronize and Mutex#sleep + + See above. -- cgit v1.2.3