Skip to content

Commit 72a40e2

Browse files
joboetJohnTitor
authored andcommitted
add pthread_cond_timedwait_relative_np
(backport <#4719>) (cherry picked from commit d2ece10)
1 parent 2914d6f commit 72a40e2

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

libc-test/semver/apple.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2202,6 +2202,7 @@ pthread_attr_setschedpolicy
22022202
pthread_attr_setscope
22032203
pthread_attr_setstackaddr
22042204
pthread_cancel
2205+
pthread_cond_timedwait_relative_np
22052206
pthread_condattr_getpshared
22062207
pthread_condattr_setpshared
22072208
pthread_cpu_number_np

src/unix/bsd/apple/mod.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5380,6 +5380,11 @@ extern "C" {
53805380
pub fn mach_host_self() -> mach_port_t;
53815381
#[deprecated(since = "0.2.55", note = "Use the `mach2` crate instead")]
53825382
pub fn mach_thread_self() -> mach_port_t;
5383+
pub fn pthread_cond_timedwait_relative_np(
5384+
cond: *mut pthread_cond_t,
5385+
lock: *mut pthread_mutex_t,
5386+
timeout: *const crate::timespec,
5387+
) -> c_int;
53835388
pub fn pthread_once(
53845389
once_control: *mut crate::pthread_once_t,
53855390
init_routine: Option<unsafe extern "C" fn()>,

0 commit comments

Comments
 (0)