Skip to content

Commit e42f9f0

Browse files
committed
Add pthread_mutex_timedlock
1 parent b474785 commit e42f9f0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/unix/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -545,6 +545,8 @@ extern {
545545
pub fn pthread_mutex_lock(lock: *mut pthread_mutex_t) -> ::c_int;
546546
pub fn pthread_mutex_trylock(lock: *mut pthread_mutex_t) -> ::c_int;
547547
pub fn pthread_mutex_unlock(lock: *mut pthread_mutex_t) -> ::c_int;
548+
pub fn pthread_mutex_timedlock(lock: *mut pthread_mutex_t,
549+
abstime: *const ::timespec) -> ::c_int;
548550

549551
pub fn pthread_mutexattr_init(attr: *mut pthread_mutexattr_t) -> ::c_int;
550552
#[cfg_attr(all(target_os = "macos", target_arch = "x86"),

0 commit comments

Comments
 (0)