File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -285,6 +285,10 @@ s! {
285285 waiters: [ * mut :: c_void; 2 ] ,
286286 }
287287
288+ pub struct pthread_spinlock_t {
289+ lock: u32 ,
290+ }
291+
288292 pub struct passwd {
289293 pub pw_name: * mut :: c_char,
290294 pub pw_passwd: * mut :: c_char,
@@ -1612,6 +1616,11 @@ extern "C" {
16121616 lock : * mut pthread_mutex_t ,
16131617 abstime : * const :: timespec ,
16141618 ) -> :: c_int ;
1619+ pub fn pthread_spin_init ( lock : * mut :: pthread_spinlock_t , pshared : :: c_int ) -> :: c_int ;
1620+ pub fn pthread_spin_destroy ( lock : * mut :: pthread_spinlock_t ) -> :: c_int ;
1621+ pub fn pthread_spin_lock ( lock : * mut :: pthread_spinlock_t ) -> :: c_int ;
1622+ pub fn pthread_spin_trylock ( lock : * mut :: pthread_spinlock_t ) -> :: c_int ;
1623+ pub fn pthread_spin_unlock ( lock : * mut :: pthread_spinlock_t ) -> :: c_int ;
16151624 pub fn waitid ( idtype : idtype_t , id : id_t , infop : * mut :: siginfo_t , options : :: c_int )
16161625 -> :: c_int ;
16171626
You can’t perform that action at this time.
0 commit comments