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 2e0aa52 commit 400fc90Copy full SHA for 400fc90
src/libstd/sys/unix/condvar.rs
@@ -164,14 +164,14 @@ impl Condvar {
164
}
165
166
#[inline]
167
- #[cfg(not(target_os = "dragonfly"))]
+ #[cfg(all(not(target_os = "dragonfly"), not(feature = "macos_before_10_7")))]
168
pub unsafe fn destroy(&self) {
169
let r = libc::pthread_cond_destroy(self.inner.get());
170
debug_assert_eq!(r, 0);
171
172
173
174
- #[cfg(target_os = "dragonfly")]
+ #[cfg(any(target_os = "dragonfly", feature = "macos_before_10_7"))]
175
176
177
// On DragonFly pthread_cond_destroy() returns EINVAL if called on
0 commit comments