]> git.proxmox.com Git - rustc.git/blobdiff - library/std/src/sync/rwlock.rs
New upstream version 1.52.0~beta.3+dfsg1
[rustc.git] / library / std / src / sync / rwlock.rs
index d967779ce361de0bf1da126434cf518a7d02963b..0298f59228cbeb45420d5a01673f3c32c54d6431 100644 (file)
@@ -23,7 +23,9 @@ use crate::sys_common::rwlock as sys;
 ///
 /// The priority policy of the lock is dependent on the underlying operating
 /// system's implementation, and this type does not guarantee that any
-/// particular policy will be used.
+/// particular policy will be used. In particular, a writer which is waiting to
+/// acquire the lock in `write` might or might not block concurrent calls to
+/// `read`.
 ///
 /// The type parameter `T` represents the data that this lock protects. It is
 /// required that `T` satisfies [`Send`] to be shared across threads and