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

Add lock_api::{Mutex, ReentrantMutex, RwLock}::from_raw methods #426

Merged
merged 1 commit into from
Jan 29, 2024

Conversation

nspin
Copy link
Contributor

@nspin nspin commented Jan 26, 2024

Addresses #400 by implementing #400 (comment).

This PR adds from_raw methods for lock_api::{Mutex, ReentrantMutex, RwLock}. These have the same behavior as the existing legacy const_new methods.

These methods are useful with RawMutex, etc. implementations which don't support const initialization.

Adds from_raw methods for lock_api::{Mutex, ReentrantMutex, RwLock}.

These have the same behavior as the existing legacy const_new methods.
@Amanieu Amanieu merged commit 2c1cc2d into Amanieu:master Jan 29, 2024
37 checks passed
@nspin nspin deleted the pr/from-raw branch January 29, 2024 19:37
@nspin nspin restored the pr/from-raw branch January 29, 2024 19:37
nspin added a commit to nspin/rust-sel4 that referenced this pull request May 2, 2024
To include Amanieu/parking_lot#426

Signed-off-by: Nick Spinale <nick@nickspinale.com>
nspin added a commit to seL4/rust-sel4 that referenced this pull request May 2, 2024
To include Amanieu/parking_lot#426

Signed-off-by: Nick Spinale <nick@nickspinale.com>
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.

2 participants