We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
pthread_cond_destroy
1 parent 9618ea6 commit e0045bfCopy full SHA for e0045bf
library/std/src/sys/unix/condvar.rs
@@ -157,14 +157,14 @@ impl Condvar {
157
}
158
159
#[inline]
160
- #[cfg(not(target_os = "dragonfly"))]
+ #[cfg(all(not(target_os = "dragonfly"), not(feature = "macos_before_10_7")))]
161
pub unsafe fn destroy(&self) {
162
let r = libc::pthread_cond_destroy(self.inner.get());
163
debug_assert_eq!(r, 0);
164
165
166
167
- #[cfg(target_os = "dragonfly")]
+ #[cfg(any(target_os = "dragonfly", feature = "macos_before_10_7"))]
168
169
170
// On DragonFly pthread_cond_destroy() returns EINVAL if called on
0 commit comments