Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Close leaked file descriptors | Nobuyoshi Nakada | 2021-06-15 | 1 | -0/+3 |
| | |||||
* | Wake up join list within thread EC context. (#4471) | Samuel Williams | 2021-06-14 | 1 | -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 Williams | 2020-11-07 | 1 | -2/+2 |
| | |||||
* | Rename `Fiber{}` to `Fiber.schedule{}`. | Samuel Williams | 2020-09-14 | 1 | -2/+2 |
| | |||||
* | Standardised scheduler interface. | Samuel Williams | 2020-09-14 | 1 | -1/+0 |
| | |||||
* | Improved assertions | Nobuyoshi Nakada | 2020-06-09 | 1 | -2/+2 |
| | |||||
* | Return seconds slept after Thread.scheduler wait_sleep | nicholas a. evans | 2020-06-09 | 1 | -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 directory | Hiroshi SHIBATA | 2020-05-23 | 1 | -1/+1 |
| | |||||
* | Move `test/scheduler` -> `test/fiber` [Bug #16892][ruby-core:98366]. | Samuel Williams | 2020-05-15 | 1 | -0/+30 |