File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -636,7 +636,7 @@ pub const PTHREAD_COND_INITIALIZER: pthread_cond_t = pthread_cond_t {
636
636
} ;
637
637
pub const PTHREAD_RWLOCK_INITIALIZER : pthread_rwlock_t = pthread_rwlock_t {
638
638
flags : 0 ,
639
- owner : 0 ,
639
+ owner : - 1 ,
640
640
lock_sem : 0 ,
641
641
lock_count : 0 ,
642
642
reader_count : 0 ,
@@ -794,6 +794,10 @@ f! {
794
794
extern {
795
795
pub fn clock_gettime ( clk_id : :: c_int , tp : * mut :: timespec ) -> :: c_int ;
796
796
pub fn clock_settime ( clk_id : :: c_int , tp : * const :: timespec ) -> :: c_int ;
797
+ pub fn pthread_create ( thread : * mut :: pthread_t ,
798
+ attr : * const :: pthread_attr_t ,
799
+ f : extern fn ( * mut :: c_void ) -> * mut :: c_void ,
800
+ value : * mut :: c_void ) -> :: c_int ;
797
801
pub fn pthread_attr_getguardsize ( attr : * const :: pthread_attr_t ,
798
802
guardsize : * mut :: size_t ) -> :: c_int ;
799
803
pub fn pthread_attr_getstack ( attr : * const :: pthread_attr_t ,
You can’t perform that action at this time.
0 commit comments