Skip to content

Commit 24808fa

Browse files
webmobsterwebmobster-zz
authored andcommitted
Add priority policy to RWLock API Documentation
1 parent a5979be commit 24808fa

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/libstd/sync/rwlock.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ use sys_common::rwlock as sys;
2424
/// of the underlying data (exclusive access) and the read portion of this lock
2525
/// typically allows for read-only access (shared access).
2626
///
27+
/// The priority policy of the lock is dependent on the underlying operating
28+
/// system's implementation, and this type does not guarantee that any
29+
/// particular policy will be used.
30+
///
2731
/// The type parameter `T` represents the data that this lock protects. It is
2832
/// required that `T` satisfies `Send` to be shared across threads and `Sync` to
2933
/// allow concurrent access through readers. The RAII guards returned from the

0 commit comments

Comments
 (0)