about summary refs log tree commit diff
path: root/src/libstd/sync
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2015-06-04 10:07:02 +0530
committerManish Goregaokar <manishsmail@gmail.com>2015-06-04 10:07:02 +0530
commit5421b1fa25108a5100faa772840202f304293e0f (patch)
treeb6a110b2230b30b16b848ecc14d30aa8ec6b51fe /src/libstd/sync
parent8a39dffa7f3afc974073d8f62b9dfcb419e03f4e (diff)
parent24808fa076a2cf86c32e138d95c68e3ee4c7a0fc (diff)
downloadrust-5421b1fa25108a5100faa772840202f304293e0f.tar.gz
rust-5421b1fa25108a5100faa772840202f304293e0f.zip
Rollup merge of #25988 - webmobster:master, r=alexcrichton
The priority policy of RWLock is not specified, and the fact there is no policy should probably be specified.
Diffstat (limited to 'src/libstd/sync')
-rw-r--r--src/libstd/sync/rwlock.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libstd/sync/rwlock.rs b/src/libstd/sync/rwlock.rs
index e7c3d744c17..857d8889b7c 100644
--- a/src/libstd/sync/rwlock.rs
+++ b/src/libstd/sync/rwlock.rs
@@ -24,6 +24,10 @@ use sys_common::rwlock as sys;
 /// of the underlying data (exclusive access) and the read portion of this lock
 /// typically allows for read-only access (shared access).
 ///
+/// 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.
+///
 /// The type parameter `T` represents the data that this lock protects. It is
 /// required that `T` satisfies `Send` to be shared across threads and `Sync` to
 /// allow concurrent access through readers. The RAII guards returned from the