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/mutex.rs | |
| parent | 6f6e030ea7edb9d155ebf21b5d42936c20801b50 (diff) | |
Add tests
Diffstat (limited to 'src/mutex.rs')
| -rwxr-xr-x | src/mutex.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mutex.rs b/src/mutex.rs index 0d6aa73..d7b0176 100755 --- a/src/mutex.rs +++ b/src/mutex.rs @@ -170,6 +170,8 @@ pub struct MutexRef<'a, T: ?Sized + 'a, R: RawMutex>(&'a Mutex<T, R>, PhantomDat // // This is the most lifetime-intensive thing I've ever written. Can I graduate // from borrow checker university now? +// +// As an update, I've now written `LockContext`. That was even more challenging pub struct MutexGuard<'a, T: ?Sized + 'a, R: RawMutex> { mutex: MutexRef<'a, T, R>, // this way we don't need to re-implement Drop thread_key: ThreadKey, |
