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 [Raw]ReentrantMutex::is_owned #280

Merged
merged 1 commit into from Feb 25, 2021

Conversation

coolreader18
Copy link
Contributor

@coolreader18 coolreader18 commented Feb 18, 2021

I'm not sure about the naming; I based it off of Python's RLock._is_owned, but Rust obviously has a pretty different meaning of "owned". Maybe a more explicit/verbose name, like owned_by_thread?

@Amanieu
Copy link
Owner

Amanieu commented Feb 18, 2021

Since this is a rather uncommon operation, I'd go for the full is_owned_by_current_thread.

@Amanieu Amanieu merged commit 2b3032f into Amanieu:master Feb 25, 2021
@coolreader18 coolreader18 deleted the remutex-is_owned branch April 2, 2021 02:39
@coolreader18
Copy link
Contributor Author

Would you be able to cut a new version with this change?

@Amanieu
Copy link
Owner

Amanieu commented Apr 3, 2021

Done.

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