summaryrefslogtreecommitdiff
path: root/test/fiber/test_sleep.rb
Commit message (Collapse)AuthorAgeFilesLines
* Close leaked file descriptorsNobuyoshi Nakada2021-06-151-0/+3
|
* Wake up join list within thread EC context. (#4471)Samuel Williams2021-06-141-0/+22
| | | | | | | | | | | | | | | * Wake up join list within thread EC context. * Consume items from join list so that they are not re-executed. If `rb_fiber_scheduler_unblock` raises an exception, it can result in a segfault if `rb_threadptr_join_list_wakeup` is not within a valid EC. This change moves `rb_threadptr_join_list_wakeup` into the thread's top level EC which initially caused an infinite loop because on exception will retry. We explicitly remove items from the thread's join list to avoid this situation. * Verify the required scheduler interface. * Test several scheduler hooks methods with broken `unblock` implementation.
* Rename to `Fiber#set_scheduler`.Samuel Williams2020-11-071-2/+2
|
* Rename `Fiber{}` to `Fiber.schedule{}`.Samuel Williams2020-09-141-2/+2
|
* Standardised scheduler interface.Samuel Williams2020-09-141-1/+0
|
* Improved assertionsNobuyoshi Nakada2020-06-091-2/+2
|
* Return seconds slept after Thread.scheduler wait_sleepnicholas a. evans2020-06-091-1/+18
| | | | | | Kernel#sleep should still return seconds slept, even when using a Thread.scheduler. The return value of Scheduler#wait_sleep can be ignored.
* Rename TestScheduler* to TestFiber for convention of the test directoryHiroshi SHIBATA2020-05-231-1/+1
|
* Move `test/scheduler` -> `test/fiber` [Bug #16892][ruby-core:98366].Samuel Williams2020-05-151-0/+30