[ruby-core:32777] [Ruby 1.9.2-Backport#3944][Open] Add Fiber#root? method

From: Mike Perham <redmine@...>
Date: 2010-10-13 16:51:41 UTC
List: ruby-core #32777
Backport #3944: Add Fiber#root? method
http://redmine.ruby-lang.org/issues/show/3944

Author: Mike Perham
Status: Open, Priority: Normal

Since the root fiber is treated differently than other Fibers (e.g. you can't yield from the root), code which can optionally use fibers for high-performance IO (in my case, the Mysql2 driver) needs Fiber#root? to know when it can use Fibers to execute a query versus using a standard blocking call.


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

In This Thread

Prev Next