Andrew Kelley
b215ddc9fb
WIP
2025-10-02 16:30:59 -07:00
Jacob Young
2f2019645c
EventLoop: move context after the async closure
...
This avoids needing to store more sizes and alignments. Only the result
alignment needs to be stored, because `Fiber` is at a fixed zero offset.
2025-10-02 16:30:59 -07:00
Jacob Young
dfbf68e5fa
EventLoop: fix incorrect alignment panic
...
When the previous fiber did not request to be registered as an awaiter,
it may not have actually been a full blown `Fiber`, so only create the
`Fiber` pointer when needed.
2025-10-02 16:30:59 -07:00
Andrew Kelley
3ee2399630
update threaded fibers impl to actually storing args
...
sorry, something still not working correctly
2025-10-02 16:30:59 -07:00
Andrew Kelley
acd02e978b
fix context passing in threaded Io impl
2025-10-02 16:30:59 -07:00
Jacob Young
1e79f2c12f
EventLoop: implement main idle fiber
2025-10-02 16:30:59 -07:00
Jacob Young
2c1ceb4c9c
EventLoop: add threads
2025-10-02 16:30:59 -07:00
Jacob Young
19e7613a2d
EventLoop: rewrite context switching
2025-10-02 16:30:59 -07:00
Jacob Young
a9723598d7
EventLoop: prepare for threading
2025-10-02 16:30:59 -07:00
Andrew Kelley
1e09d7f499
demo: single-threaded green threads implementation
2025-10-02 16:30:59 -07:00