Skip to content

Commit ef56a1e

Browse files
authoredJun 8, 2022
Rollup merge of #97879 - hermitcore:condvar, r=Dylan-DPC
remove unneeded code The init function isn't longer part of `Condvar`. Consequently, we removed the implementation for the target os `hermit`.
2 parents d11ab85 + 85b5f74 commit ef56a1e

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed
 

‎library/std/src/sys/hermit/condvar.rs

-5
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,6 @@ impl Condvar {
2424
Condvar { counter: AtomicUsize::new(0), sem1: ptr::null(), sem2: ptr::null() }
2525
}
2626

27-
pub unsafe fn init(&mut self) {
28-
let _ = abi::sem_init(&mut self.sem1 as *mut *const c_void, 0);
29-
let _ = abi::sem_init(&mut self.sem2 as *mut *const c_void, 0);
30-
}
31-
3227
pub unsafe fn notify_one(&self) {
3328
if self.counter.load(SeqCst) > 0 {
3429
self.counter.fetch_sub(1, SeqCst);

0 commit comments

Comments
 (0)