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

Build server state and associated types from single struct definition #21

Merged
merged 3 commits into from
Oct 31, 2022

Conversation

Seamooo
Copy link
Owner

@Seamooo Seamooo commented Oct 31, 2022

This PR introduces the server_state macro used to build types to assert correct scheduling for such that side effects occur in-order, whilst enabling concurrent execution. These types include fields with respective read / write locks, A type providing information on which locks should be acquired by a request, and list of optional lock guards to contain the locks themselves. Due to the tightly coupled nature of producing these handles, a utility function is also provided by this macro

@Seamooo Seamooo merged commit 864d12c into main Oct 31, 2022
@Seamooo Seamooo deleted the feature/macro-state branch October 31, 2022 18: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