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

[catmem] Mutex locking #864

Merged
merged 3 commits into from
Aug 9, 2023
Merged

[catmem] Mutex locking #864

merged 3 commits into from
Aug 9, 2023

Conversation

iyzhang
Copy link
Contributor

@iyzhang iyzhang commented Aug 7, 2023

This PR adds a simple mutex to the scheduler that can be used to guarantee serialized access to the data structure. The mutex can either be used by polling it or passing in a yielder that will yield back to the scheduler if the mutex is currently locked. This PR is a fix to issue #842, although all the producers must be in a single process and all consumers as well.

@iyzhang iyzhang added bug Something Isn't Working enhancement Enhancement Request on an Existing Feature labels Aug 7, 2023
@iyzhang iyzhang self-assigned this Aug 7, 2023
@ppenna ppenna changed the title [catmem] Enhancement: Mutex locking [catmem] Mutex locking Aug 7, 2023
Copy link
Contributor

@anandbonde anandbonde left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

@ppenna ppenna force-pushed the enhancement-scheduler-mutex branch from 9d0a55d to 960ec8c Compare August 8, 2023 09:21
@ppenna ppenna force-pushed the enhancement-scheduler-mutex branch from 960ec8c to cebc079 Compare August 8, 2023 09:56
@ppenna ppenna merged commit b6aef3f into dev Aug 9, 2023
11 checks passed
@ppenna ppenna deleted the enhancement-scheduler-mutex branch August 9, 2023 00:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something Isn't Working enhancement Enhancement Request on an Existing Feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants