summaryrefslogtreecommitdiff
path: root/src/mutex/guard.rs
diff options
context:
space:
mode:
authorMica White <botahamec@outlook.com>2024-03-11 22:09:33 -0400
committerMica White <botahamec@outlook.com>2024-03-11 22:09:33 -0400
commit92ff1a5988cdea5851930e286fd8a0abfd744471 (patch)
treee5ff0478051108ec6db6941b2af4ac340a578ce5 /src/mutex/guard.rs
parent84ebd3cf9be21bba8eb6c4d214c868e66965b69a (diff)
Fix trait bounds
Diffstat (limited to 'src/mutex/guard.rs')
-rw-r--r--src/mutex/guard.rs10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/mutex/guard.rs b/src/mutex/guard.rs
index 9a309b4..5a2a2c1 100644
--- a/src/mutex/guard.rs
+++ b/src/mutex/guard.rs
@@ -61,7 +61,15 @@ impl<'a, 'key: 'a, T: ?Sized + 'a, Key: Keyable, R: RawMutex> MutexGuard<'a, 'ke
Self {
mutex: MutexRef(mutex),
thread_key,
- _phantom: PhantomData,
+ _phantom1: PhantomData,
+ _phantom2: PhantomData,
}
}
}
+
+unsafe impl<'a, T: ?Sized + 'a, R: RawMutex> Sync for MutexRef<'a, T, R> {}
+
+unsafe impl<'a, 'key: 'a, T: ?Sized + Sync, Key: Keyable + 'key, R: RawMutex> Sync
+ for MutexGuard<'_, 'key, T, Key, R>
+{
+}