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

Mutex node refactor #2

Merged
merged 3 commits into from
Nov 24, 2023
Merged

Mutex node refactor #2

merged 3 commits into from
Nov 24, 2023

Conversation

pedromfedricci
Copy link
Owner

@pedromfedricci pedromfedricci commented Nov 24, 2023

Queue nodes now hold both the next pointer and locked state. The queue is now formed of initialized nodes instead of maybe initialized nodes, which reduces the number of unsafe calls. Removed private locking functions that would operate on raw pointers, which also reduced project's usage of unsafe code.

@pedromfedricci pedromfedricci merged commit a76c40b into main Nov 24, 2023
@pedromfedricci pedromfedricci deleted the node-refactor branch November 24, 2023 21: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