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

fine-grained DB locking #189

Merged
merged 11 commits into from
Apr 13, 2022
Merged

fine-grained DB locking #189

merged 11 commits into from
Apr 13, 2022

Conversation

jadamcrain
Copy link
Member

@jadamcrain jadamcrain commented Apr 13, 2022

OutstationApplication and ControlHandler now take a DatabaseHandle in callbacks instead of the locked database.

Users can now chose when they lock the database. Locks are no longer pre-acquired to reduce possibility of dead-lock.

ControlHandler::end_fragment may be used to update multiple points with a single lock/unlock cycle

@emgre emgre changed the base branch from 0.10.x to main April 13, 2022 17:22
@jadamcrain jadamcrain requested a review from emgre April 13, 2022 19:21
@jadamcrain jadamcrain changed the title fine-grain DB locking fine-grained DB locking Apr 13, 2022
@jadamcrain jadamcrain merged commit 3a4e67d into main Apr 13, 2022
@jadamcrain jadamcrain deleted the refactor/control-db-locking branch April 13, 2022 21:21
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.

None yet

2 participants