We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d34318d commit cd314abCopy full SHA for cd314ab
src/libstd/sync/rwlock.rs
@@ -63,6 +63,9 @@ use sys_common::rwlock as sys;
63
/// assert_eq!(*w, 6);
64
/// } // write lock is dropped here
65
/// ```
66
+/// # Panics
67
+///
68
+/// This function might panic when called if the lock is already held by the current thread.
69
#[stable(feature = "rust1", since = "1.0.0")]
70
pub struct RwLock<T: ?Sized> {
71
inner: Box<sys::RWLock>,
0 commit comments