Issue #4480 has been updated by Hiroshi Nakamura.

Status changed from Assigned to Closed


----------------------------------------
Bug #4480: Thread-local variables issue: Thread#[] returns nil when called first time
http://redmine.ruby-lang.org/issues/4480

Author: Andrei Kulakov
Status: Closed
Priority: Normal
Assignee: Hiroshi Nakamura
Category: DOC
Target version: 1.9.3
ruby -v: -


=begin
In ruby 1.9.2p180
 t = Thread.new do
   Thread.current[:var] = "var"
   Thread.stop
 end
 
 p t[:var] #=> nil
 p t[:var] #=> "var"

In ruby 1.8.7
 p t[:var] #=> "var"
 p t[:var] #=> "var"
=end



-- 
http://redmine.ruby-lang.org