1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/test/fiber
Lars Kanis 9c0582704f Fix example fiber scheduler reg. writable events
There were two issues:

1. When an IO object is waiting for writablility only (as in test_tcp_accept) the selected hash is empty.
   Therefore selected[fiber] returns nil but needs to default to 0 in order to be or'ed with IO::WRITABLE.

2. When an IO object is waiting for read- or writability (as in test_tcp_connect), but only one of these
   two events arrive, the Fiber and IO object need to be removed from the other `@readable` or `@writable` list.
2021-08-26 21:49:12 +12:00
..
http.rb
scheduler.rb Fix example fiber scheduler reg. writable events 2021-08-26 21:49:12 +12:00
test_address_resolve.rb Fix fiber scheduler address resolve solaris tests 2021-06-14 22:09:23 +12:00
test_backtrace.rb
test_enumerator.rb
test_io.rb Fix example fiber scheduler reg. writable events 2021-08-26 21:49:12 +12:00
test_mutex.rb Prefer qualified names under Thread 2021-06-29 11:41:10 +09:00
test_process.rb
test_ractor.rb
test_scheduler.rb Wake up join list within thread EC context. (#4471) 2021-06-14 17:56:53 +12:00
test_sleep.rb Close leaked file descriptors 2021-06-15 00:02:15 +09:00
test_thread.rb Fix potential hang when joining threads. 2021-08-03 22:23:48 +12:00
test_timeout.rb Fix handling of timeout accessing scheduler outside of non-blocking context. 2021-03-30 18:38:42 +13:00