Project

General

Profile

Actions

Bug #1717

closed

Thread local variables not visible from within a Fiber

Added by oldmoe (Muhammad Ali) over 15 years ago. Updated over 13 years ago.

Status:
Rejected
Assignee:
-
ruby -v:
ruby 1.9.1p129 (2009-05-12 revision 23412) [i686-linux]
[ruby-core:24120]

Description

=begin

Given the following:

Thread.current[:x] = 1

Fiber.new{Thread.current[:x]}.resume # => nil

returns nil when it should return 1

even though Thread.current returns the same object

=end


Related issues 1 (0 open1 closed)

Has duplicate Ruby master - Bug #5750: Thread.current local-variables behaviorClosedakr (Akira Tanaka)12/12/2011Actions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0