Skip to content

Commit 2bd12a7

Browse files
committed
fixed send mutex guard between threads bug
1 parent 5859550 commit 2bd12a7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

util/src/sync/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ impl<T> Mutex<T> {
2727
/// dropped (falls out of scope), the lock will be unlocked.
2828
pub struct MutexGuard<'a, T>(sync::MutexGuard<'a, T>);
2929

30+
unsafe impl<'a, T> Send for MutexGuard<'a, T> {}
31+
3032
impl<'a, T> ops::Deref for MutexGuard<'a, T> {
3133
type Target = T;
3234

0 commit comments

Comments
 (0)