Skip to content

Commit 1bca87e

Browse files
committed
Auto merge of #3464 - Sword-Destiny:main, r=JohnTitor
add pthread_cond_timedwait for teeos add pthread_cond_timedwait binding for teeos
2 parents 1e755f9 + a226203 commit 1bca87e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/teeos/mod.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1106,6 +1106,12 @@ extern "C" {
11061106

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

1109+
pub fn pthread_cond_timedwait(
1110+
cond: *mut pthread_cond_t,
1111+
lock: *mut pthread_mutex_t,
1112+
abstime: *const ::timespec,
1113+
) -> ::c_int;
1114+
11091115
pub fn pthread_mutexattr_setrobust(attr: *mut pthread_mutexattr_t, robustness: c_int) -> c_int;
11101116

11111117
pub fn pthread_create(

0 commit comments

Comments
 (0)