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 blocking lock methods to RwLock #4425

Conversation

danielhenrymantilla
Copy link
Contributor

Same as #4130, but for RwLock this time.

@github-actions github-actions bot added the R-loom Run loom tests on this PR label Jan 25, 2022
@Darksonn Darksonn added A-tokio Area: The main tokio crate M-sync Module: tokio/sync and removed R-loom Run loom tests on this PR labels Jan 25, 2022
Comment on lines 377 to 380
/// - Consider using [`spawn_blocking()`][crate::runtime::Handle::spawn_blocking]
/// (or [`block_in_place()`][crate::task::block_in_place]) to call, when
/// within an asynchronrous execution context, any function that may
/// call one of these `blocking_` operations.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This sentence is rather awkward.

tokio/src/sync/rwlock.rs Outdated Show resolved Hide resolved
@github-actions github-actions bot added the R-loom Run loom tests on this PR label Jan 25, 2022
Co-Authored-By: Alice Ryhl <alice@ryhl.io>
Copy link
Contributor

@Darksonn Darksonn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks.

@Darksonn Darksonn merged commit 5af9e0d into tokio-rs:master Jan 27, 2022
@danielhenrymantilla danielhenrymantilla deleted the add_blocking_lock_methods_to_rwlock branch January 27, 2022 15:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-tokio Area: The main tokio crate M-sync Module: tokio/sync R-loom Run loom tests on this PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants