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

Fix bug in RwLockWriteGuardRefMut #44

Merged
merged 1 commit into from
Aug 17, 2018
Merged

Conversation

kingoflolz
Copy link
Contributor

@kingoflolz kingoflolz commented Apr 12, 2018

I think RwLockWriteGuardRefMut should be an OwningRefMut instead of an OwningRef as a RwLockWriteGuard can safely mutate the object it's locking

`RwLockWriteGuardRefMut` should be an `OwningRefMut` instead of an `OwningRef` as a RwLockWriteGuard can safely mutate the object it's locking
kingoflolz added a commit to kingoflolz/althea_rs that referenced this pull request Apr 12, 2018
1. adding getter and setter methods with a trait
2. implementing the methods on Arc<RwLock<SettingsStruct>> and doing locking internally
3. return references to data instead of cloning (requires the use of owning_ref crate (which I had to fork because of bug
Kimundi/owning-ref-rs#44))
@Kimundi
Copy link
Owner

Kimundi commented Aug 17, 2018

Thanks for the contribution! Sorry for the lack of response, I had a busy year. 😬

@Kimundi Kimundi merged commit 9afd598 into Kimundi:master Aug 17, 2018
jkilpatr pushed a commit to althea-net/rita that referenced this pull request Feb 7, 2020
1. adding getter and setter methods with a trait
2. implementing the methods on Arc<RwLock<SettingsStruct>> and doing locking internally
3. return references to data instead of cloning (requires the use of owning_ref crate (which I had to fork because of bug
Kimundi/owning-ref-rs#44))
jkilpatr pushed a commit to althea-net/rita that referenced this pull request Feb 7, 2020
1. adding getter and setter methods with a trait
2. implementing the methods on Arc<RwLock<SettingsStruct>> and doing locking internally
3. return references to data instead of cloning (requires the use of owning_ref crate (which I had to fork because of bug
Kimundi/owning-ref-rs#44))
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