@@ -23,23 +23,23 @@ impl Condvar {
2323 }
2424
2525 /// # Safety
26- /// `init` must have been called.
26+ /// `init` must have been called on this instance .
2727 #[ inline]
2828 pub unsafe fn notify_one ( self : Pin < & Self > ) {
2929 let r = unsafe { libc:: pthread_cond_signal ( self . raw ( ) ) } ;
3030 debug_assert_eq ! ( r, 0 ) ;
3131 }
3232
3333 /// # Safety
34- /// `init` must have been called.
34+ /// `init` must have been called on this instance .
3535 #[ inline]
3636 pub unsafe fn notify_all ( self : Pin < & Self > ) {
3737 let r = unsafe { libc:: pthread_cond_broadcast ( self . raw ( ) ) } ;
3838 debug_assert_eq ! ( r, 0 ) ;
3939 }
4040
4141 /// # Safety
42- /// * `init` must have been called.
42+ /// * `init` must have been called on this instance .
4343 /// * `mutex` must be locked by the current thread.
4444 /// * This condition variable may only be used with the same mutex.
4545 #[ inline]
@@ -49,7 +49,7 @@ impl Condvar {
4949 }
5050
5151 /// # Safety
52- /// * `init` must have been called.
52+ /// * `init` must have been called on this instance .
5353 /// * `mutex` must be locked by the current thread.
5454 /// * This condition variable may only be used with the same mutex.
5555 pub unsafe fn wait_timeout ( & self , mutex : Pin < & Mutex > , dur : Duration ) -> bool {
@@ -95,7 +95,7 @@ impl Condvar {
9595 const CLOCK : libc:: clockid_t = libc:: CLOCK_MONOTONIC ;
9696
9797 /// # Safety
98- /// May only be called once.
98+ /// May only be called once per instance of `Self` .
9999 pub unsafe fn init ( self : Pin < & mut Self > ) {
100100 use crate :: mem:: MaybeUninit ;
101101
@@ -137,7 +137,7 @@ impl Condvar {
137137 const CLOCK : libc:: clockid_t = libc:: CLOCK_REALTIME ;
138138
139139 /// # Safety
140- /// May only be called once.
140+ /// May only be called once per instance of `Self` .
141141 pub unsafe fn init ( self : Pin < & mut Self > ) {
142142 if cfg ! ( any( target_os = "espidf" , target_os = "horizon" , target_os = "teeos" ) ) {
143143 // NOTE: ESP-IDF's PTHREAD_COND_INITIALIZER support is not released yet
0 commit comments