[ruby-core:89798] Re: [ruby-dev:43715] [Ruby 1.9 - Bug #595] Fiber ignores ensure clause

From: Eric Wong <normalperson@...>
Date: 2018-11-14 21:58:05 UTC
List: ruby-core #89798
> However, I'm also working on making all sleeping functions
> (native_sleep/rb_wait_for_single_fd/rb_thread_fd_select) method
> perform auto-Fiber scheduling.
> 
> Unfortunately, that still interacts badly when people use
> regular ("manual") Fibers because I/O scheduling depend on
> rb_ensure heavily...  So *shrug* I'll have to think of
> something...

Not auto-calling fiber_switch from regular Fiber seems
to do the trick.  Need to avoid infinite loops from regular
Fibers, though...

Unsubscribe: <mailto:[email protected]?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

In This Thread

Prev Next