From 2285319b31aa00b121c688d0bc67740ba385ab75 Mon Sep 17 00:00:00 2001 From: tenderlove Date: Mon, 29 Oct 2012 17:22:36 +0000 Subject: * thread.c: added Thread#thread_variable_(get|set), Thread#thread_variable?, and Thread#thread_variables for operating on variables that are local to threads. [ruby-core:47790] * vm.c: ditto * test/ruby/test_thread.rb: tests for thread variables. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37384 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- NEWS | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'NEWS') diff --git a/NEWS b/NEWS index 61b0af5e02..596a291cd8 100644 --- a/NEWS +++ b/NEWS @@ -83,6 +83,16 @@ with all sufficient information, see the ChangeLog file. * added Struct#to_h returning values with keys corresponding to the instance variable names. + * Thread + * added method: + * added Thread#thread_variable_get for getting thread local variables + (these are different than Fiber local variables). + * added Thread#thread_variable_set for setting thread local variables. + * added Thread#thread_variables for getting a list of the thread local + variable keys. + * added Thread#thread_variable? for testing to see if a particular thread + variable has been set. + * Time * change return value: * Time#to_s returned encoding defaults to US-ASCII but automatically -- cgit v1.2.3