File tree 1 file changed +9
-0
lines changed
1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -285,6 +285,10 @@ s! {
285
285
waiters: [ * mut :: c_void; 2 ] ,
286
286
}
287
287
288
+ pub struct pthread_spinlock_t {
289
+ lock: u32 ,
290
+ }
291
+
288
292
pub struct passwd {
289
293
pub pw_name: * mut :: c_char,
290
294
pub pw_passwd: * mut :: c_char,
@@ -1612,6 +1616,11 @@ extern "C" {
1612
1616
lock : * mut pthread_mutex_t ,
1613
1617
abstime : * const :: timespec ,
1614
1618
) -> :: 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 ;
1615
1624
pub fn waitid ( idtype : idtype_t , id : id_t , infop : * mut :: siginfo_t , options : :: c_int )
1616
1625
-> :: c_int ;
1617
1626
You can’t perform that action at this time.
0 commit comments