Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better Thread Parker #7

Open
ibraheemdev opened this issue Jul 7, 2024 · 0 comments
Open

Better Thread Parker #7

ibraheemdev opened this issue Jul 7, 2024 · 0 comments

Comments

@ibraheemdev
Copy link
Owner

The current parker implementation is quite naive as it is rarely used. It could be improved by using an intrusive linked list to avoid allocations.

We could also use OS futexes on architectures that support 64-bit futex values, or mixed-size atomic accesses. On x86 we might also be able use futex (see rust-lang/unsafe-code-guidelines#345), but unsure if we want to go there (also losing Miri support).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant