[#62904] [ruby-trunk - Feature #9894] [Open] [RFC] README.EXT: document rb_gc_register_mark_object — normalperson@...
Issue #9894 has been reported by Eric Wong.
3 messages
2014/06/02
[#63321] [ANN] ElixirConf 2014 - Don't Miss Jos辿 Valim and Dave Thomas — Jim Freeze <jimfreeze@...>
Just a few more weeks until ElixirConf 2014!
6 messages
2014/06/24
[#63391] Access Modifiers (Internal Interfaces) — Daniel da Silva Ferreira <danieldasilvaferreira@...>
Hi,
3 messages
2014/06/28
[ruby-core:63038] [ruby-trunk - Feature #3944] Add Fiber#root? method
From:
ko1@...
Date:
2014-06-10 03:11:43 UTC
List:
ruby-core #63038
Issue #3944 has been updated by Koichi Sasada. (2014/05/23 15:17), jjyruby@gmail.com wrote: > For example, I want write a method, when under EM::Synchrony environment it should use EM::Synchrony call(in fact is async call, and writing in sync, power by fiber), and when under Fiber#root, it should use sync call, so I need detect whether current fiber is root fiber. Could you break down the description? I don't know EM::Synchrony. Why you need to choose root or not root? -- // SASADA Koichi at atdot dot net ---------------------------------------- Feature #3944: Add Fiber#root? method https://bugs.ruby-lang.org/issues/3944#change-47119 * Author: Mike Perham * Status: Feedback * Priority: Normal * Assignee: Koichi Sasada * Category: * Target version: Next Major ---------------------------------------- =begin 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. =end -- https://bugs.ruby-lang.org/