[ruby-core:88961] Re: [Ruby trunk Feature#13618] [PATCH] auto fiber schedule for rb_wait_for_single_fd and rb_waitpid

From: Eric Wong <normalperson@...>
Date: 2018-09-12 20:27:59 UTC
List: ruby-core #88961
> It goes on top of my coro-r64610 branch posted at [ruby-core:88800]:
> https://public-inbox.org/ruby-core/20180901131301.5peghdyrtmks5mka@dcvr
> 
> Several tests are skipped because Thread::Coro#stop?/#status/#[]=
> aren't implemented, yet.  Will fix later when not AFK.

Implemented; but there's some unrelated bug for kqueue/FreeBSD
I'm still working on...

> Another weird case to think about (not supported, yet):
> 
> How should Coro switching work inside Signal.trap?
> 
>    q = Queue.new
>    trap(:INT) { q.push(:INT) }
>    q.pop

Still not sure what to do, there.

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

In This Thread