Skip to content

Add basic Fiber implementation#8

Merged
AdrianGjerstad merged 3 commits into
mainfrom
feature/fibers-fiber-adgjerstad
Mar 26, 2026
Merged

Add basic Fiber implementation#8
AdrianGjerstad merged 3 commits into
mainfrom
feature/fibers-fiber-adgjerstad

Conversation

@AdrianGjerstad
Copy link
Copy Markdown
Owner

Current implementation is not covered by tests, and is not suitable for submission to the mainline. The implemented Fiber class acts as a higher-level wrapper around ConfigureStack and SwitchStack, supporting functions that work closer to how a developer familiar with writing code that runs in fibers would expect it.

Current implementation is not covered by tests, and is not suitable for
submission to the mainline. The implemented Fiber class acts as a
higher-level wrapper around ConfigureStack and SwitchStack, supporting
functions that work closer to how a developer familiar with writing code
that runs in fibers would expect it.
@AdrianGjerstad AdrianGjerstad self-assigned this Mar 26, 2026
State is an important piece of information to have for testing and for
writing an actual scheduler.
The tests use a fake stack arena that simply allocates memory on the
heap and checks for memory leaks at the end of the test. All tests pass
at this time. Fibers are functioning as they should at this stage.
@AdrianGjerstad AdrianGjerstad marked this pull request as ready for review March 26, 2026 17:31
@AdrianGjerstad AdrianGjerstad merged commit 39ba54e into main Mar 26, 2026
1 check passed
@AdrianGjerstad AdrianGjerstad deleted the feature/fibers-fiber-adgjerstad branch March 26, 2026 17:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant