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 RwLock support #67

Open
wants to merge 27 commits into
base: master
Choose a base branch
from
Open

Conversation

jean-airoldie
Copy link
Contributor

This PR adds support for a asynchronous RwLock, based on how the Mutex was implemented.

My specific use case if for concurrent threads using the same connection that just died and are racing to reconnect. Since the actual connection procedure is quite time consuming, it would make sense to use a asynchronous RwLock.

@jean-airoldie
Copy link
Contributor Author

I added a pretty sizable amount of tests.

@jean-airoldie jean-airoldie marked this pull request as ready for review March 25, 2024 04:54
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

1 participant