summaryrefslogtreecommitdiff
path: root/NEWS
diff options
context:
space:
mode:
authorkosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-12-04 16:02:07 +0000
committerkosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-12-04 16:02:07 +0000
commitbbfbf662cceb6e7d8dc769ca365c563b9c073592 (patch)
tree9ea0a75f1d52fd7a2be933c5342cbfc290e51adb /NEWS
parent1bdf339516c9886db6f950da6f5506c4f94baa65 (diff)
* thread.c (rb_mutex_owned_p): new method that return current
thread have the target mutex or not. [Feature #7505] [ruby-dev:46697] * test/ruby/test_thread.rb (test_mutex_owned, test_mutex_owned2): test for the above. * NEWS: new for the above. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38188 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'NEWS')
-rw-r--r--NEWS3
1 files changed, 3 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index d4c19a5a90..db31e6773f 100644
--- a/NEWS
+++ b/NEWS
@@ -113,6 +113,9 @@ with all sufficient information, see the ChangeLog file.
Object.const_get("Foo::Bar::Baz")
* Mutex
+ * added method:
+ * added Mutex#owned? which returns the mutex is held by current
+ thread or not. [experimental]
* incompatible changes:
* Mutex#lock, Mutex#unlock, Mutex#try_lock, Mutex#synchronize
and Mutex#sleep are no longer allowed to be used from trap handler