Updated RwLock Docs
This commit is contained in:
parent
d34318dd53
commit
cd314ab058
1 changed files with 3 additions and 0 deletions
|
|
@ -63,6 +63,9 @@ use sys_common::rwlock as sys;
|
|||
/// assert_eq!(*w, 6);
|
||||
/// } // write lock is dropped here
|
||||
/// ```
|
||||
/// # Panics
|
||||
///
|
||||
/// This function might panic when called if the lock is already held by the current thread.
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
pub struct RwLock<T: ?Sized> {
|
||||
inner: Box<sys::RWLock>,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue