@@ -3787,6 +3787,19 @@ pub const PTHREAD_PROCESS_PRIVATE: ::c_int = 2;
3787
3787
pub const PTHREAD_PROCESS_SHARED : :: c_int = 1 ;
3788
3788
pub const PTHREAD_CREATE_JOINABLE : :: c_int = 1 ;
3789
3789
pub const PTHREAD_CREATE_DETACHED : :: c_int = 2 ;
3790
+ pub const PTHREAD_INHERIT_SCHED : :: c_int = 1 ;
3791
+ pub const PTHREAD_EXPLICIT_SCHED : :: c_int = 2 ;
3792
+ pub const PTHREAD_CANCEL_ENABLE : :: c_int = 0x01 ;
3793
+ pub const PTHREAD_CANCEL_DISABLE : :: c_int = 0x00 ;
3794
+ pub const PTHREAD_CANCEL_DEFERRED : :: c_int = 0x02 ;
3795
+ pub const PTHREAD_CANCEL_ASYNCHRONOUS : :: c_int = 0x00 ;
3796
+ pub const PTHREAD_CANCELED : * mut :: c_void = 1 as * mut :: c_void ;
3797
+ pub const PTHREAD_SCOPE_SYSTEM : :: c_int = 1 ;
3798
+ pub const PTHREAD_SCOPE_PROCESS : :: c_int = 2 ;
3799
+ pub const PTHREAD_PRIO_NONE : :: c_int = 0 ;
3800
+ pub const PTHREAD_PRIO_INHERIT : :: c_int = 1 ;
3801
+ pub const PTHREAD_PRIO_PROTECT : :: c_int = 2 ;
3802
+
3790
3803
#[ cfg( target_arch = "aarch64" ) ]
3791
3804
pub const PTHREAD_STACK_MIN : :: size_t = 16384 ;
3792
3805
#[ cfg( not( target_arch = "aarch64" ) ) ]
@@ -5757,6 +5770,40 @@ extern "C" {
5757
5770
pub fn mach_timebase_info ( info : * mut :: mach_timebase_info ) -> :: c_int ;
5758
5771
pub fn mach_host_self ( ) -> mach_port_t ;
5759
5772
pub fn mach_thread_self ( ) -> mach_port_t ;
5773
+ pub fn pthread_once (
5774
+ once_control : * mut :: pthread_once_t ,
5775
+ init_routine : :: Option < unsafe extern "C" fn ( ) > ,
5776
+ ) -> :: c_int ;
5777
+ pub fn pthread_attr_getinheritsched (
5778
+ attr : * const :: pthread_attr_t ,
5779
+ inheritsched : * mut :: c_int ,
5780
+ ) -> :: c_int ;
5781
+ pub fn pthread_attr_getschedpolicy (
5782
+ attr : * const :: pthread_attr_t ,
5783
+ policy : * mut :: c_int ,
5784
+ ) -> :: c_int ;
5785
+ pub fn pthread_attr_getscope (
5786
+ attr : * const :: pthread_attr_t ,
5787
+ contentionscope : * mut :: c_int ,
5788
+ ) -> :: c_int ;
5789
+ pub fn pthread_attr_getstackaddr (
5790
+ attr : * const :: pthread_attr_t ,
5791
+ stackaddr : * mut * mut :: c_void ,
5792
+ ) -> :: c_int ;
5793
+ pub fn pthread_attr_getdetachstate (
5794
+ attr : * const :: pthread_attr_t ,
5795
+ detachstate : * mut :: c_int ,
5796
+ ) -> :: c_int ;
5797
+ pub fn pthread_attr_setinheritsched (
5798
+ attr : * mut :: pthread_attr_t ,
5799
+ inheritsched : :: c_int ,
5800
+ ) -> :: c_int ;
5801
+ pub fn pthread_attr_setschedpolicy ( attr : * mut :: pthread_attr_t , policy : :: c_int ) -> :: c_int ;
5802
+ pub fn pthread_attr_setscope ( attr : * mut :: pthread_attr_t , contentionscope : :: c_int ) -> :: c_int ;
5803
+ pub fn pthread_attr_setstackaddr (
5804
+ attr : * mut :: pthread_attr_t ,
5805
+ stackaddr : * mut :: c_void ,
5806
+ ) -> :: c_int ;
5760
5807
pub fn pthread_setname_np ( name : * const :: c_char ) -> :: c_int ;
5761
5808
pub fn pthread_getname_np ( thread : :: pthread_t , name : * mut :: c_char , len : :: size_t ) -> :: c_int ;
5762
5809
pub fn pthread_mach_thread_np ( thread : :: pthread_t ) -> :: mach_port_t ;
0 commit comments