Project

General

Profile

This project is closed and read-only.

Actions

Bug #1717

closed

Thread local variables not visible from within a Fiber

Bug #1717: Thread local variables not visible from within a Fiber

Added by oldmoe (Muhammad Ali) about 17 years ago. Updated over 15 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 - Bug #5750: Thread.current local-variables behaviorClosedakr (Akira Tanaka)Actions
Actions

Also available in: PDF Atom