We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 47aee31 commit 85b5f74Copy full SHA for 85b5f74
library/std/src/sys/hermit/condvar.rs
@@ -24,11 +24,6 @@ impl Condvar {
24
Condvar { counter: AtomicUsize::new(0), sem1: ptr::null(), sem2: ptr::null() }
25
}
26
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
-
32
pub unsafe fn notify_one(&self) {
33
if self.counter.load(SeqCst) > 0 {
34
self.counter.fetch_sub(1, SeqCst);
0 commit comments