Skip to content

Commit

Permalink
add pthread_cond_timedwait for teeos
Browse files Browse the repository at this point in the history
  • Loading branch information
Sword-Destiny committed Dec 6, 2023
1 parent 497ac42 commit a226203
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/teeos/mod.rs
Original file line number Diff line number Diff line change
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 a226203

Please sign in to comment.