Skip to content

Commit

Permalink
Hermit: Make Mutex::init a no-op
Browse files Browse the repository at this point in the history
  • Loading branch information
mkroening committed Jun 26, 2022
1 parent a53459b commit 64dbd2e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions std/src/sys/hermit/mutex.rs
Original file line number Diff line number Diff line change
Expand Up @@ -175,9 +175,7 @@ impl Mutex {
}

#[inline]
pub unsafe fn init(&mut self) {
self.inner = Spinlock::new(MutexInner::new());
}
pub unsafe fn init(&mut self) {}

#[inline]
pub unsafe fn lock(&self) {
Expand Down

0 comments on commit 64dbd2e

Please sign in to comment.