diff options
Diffstat (limited to 'src/lockable.rs')
| -rwxr-xr-x | src/lockable.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lockable.rs b/src/lockable.rs index badbe8e..705887f 100755 --- a/src/lockable.rs +++ b/src/lockable.rs @@ -197,6 +197,12 @@ pub unsafe trait Sharable: Lockable { /// /// There must not be any two values which can unlock the value at the same /// time, i.e., this must either be an owned value or a mutable reference. +/// +/// The implementation of [`Lockable::get_ptrs`] must return the locks in the +/// same order that they would be locked in if this lockable were passed into a +/// [`LockContext`]. +/// +/// [`LockContext`]: `crate::context::LockContext` pub unsafe trait OwnedLockable: Lockable {} /// A trait which indicates that `into_inner` is a valid operation for a |
