Skip to content

Commit

Permalink
oro: mark Mutex as Send/Sync
Browse files Browse the repository at this point in the history
  • Loading branch information
Qix- committed Feb 9, 2025
1 parent 0147c81 commit a83ec67
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions oro/src/lock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ pub struct Mutex<T: ?Sized> {
data: UnsafeCell<T>,
}

unsafe impl<T: ?Sized + Send> Send for Mutex<T> {}
unsafe impl<T: ?Sized + Send> Sync for Mutex<T> {}

impl<T> Mutex<T> {
/// Creates a new `Mutex` instance.
#[must_use]
Expand Down

0 comments on commit a83ec67

Please sign in to comment.