@@ -116,6 +116,9 @@ pub struct ReentrantLockGuard<'a, T: ?Sized + 'a> { |
|
|
116 |
116 |
#[unstable(feature = "reentrant_lock", issue = "121440")] |
117 |
117 |
impl<T: ?Sized> !Send for ReentrantLockGuard<'_, T> {} |
118 |
118 |
|
|
119 |
+#[unstable(feature = "reentrant_lock", issue = "121440")] |
|
120 |
+unsafe impl<T: ?Sized + Sync> Sync for ReentrantLockGuard<'_, T> {} |
|
121 |
+ |
119 |
122 |
#[unstable(feature = "reentrant_lock", issue = "121440")] |
120 |
123 |
impl<T> ReentrantLock<T> { |
121 |
124 |
/// Creates a new re-entrant lock in an unlocked state ready for use. |