Skip to content

Commit

Permalink
Auto merge of #3464 - Sword-Destiny:main, r=JohnTitor
Browse files Browse the repository at this point in the history
add pthread_cond_timedwait for teeos

add pthread_cond_timedwait binding for teeos
  • Loading branch information
bors committed Dec 9, 2023
2 parents 1e755f9 + a226203 commit 1bca87e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/teeos/mod.rs
Expand Up @@ -1106,6 +1106,12 @@ extern "C" {

pub fn pthread_cond_wait(cond: *mut pthread_cond_t, lock: *mut pthread_mutex_t) -> c_int;

pub fn pthread_cond_timedwait(
cond: *mut pthread_cond_t,
lock: *mut pthread_mutex_t,
abstime: *const ::timespec,
) -> ::c_int;

pub fn pthread_mutexattr_setrobust(attr: *mut pthread_mutexattr_t, robustness: c_int) -> c_int;

pub fn pthread_create(
Expand Down

0 comments on commit 1bca87e

Please sign in to comment.