diff options
| author | Mica White <botahamec@outlook.com> | 2026-08-26 20:46:31 -0400 |
|---|---|---|
| committer | Mica White <botahamec@outlook.com> | 2026-08-26 20:46:31 -0400 |
| commit | 55b3a2425b242fbc5c6e471f220eeb8b949e8751 (patch) | |
| tree | 5ceb7910b60cc7331024b7ce1d49ec259e0302a8 /src/lockable.rs | |
| parent | 6f6e030ea7edb9d155ebf21b5d42936c20801b50 (diff) | |
Add tests
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 |
