File tree Expand file tree Collapse file tree 3 files changed +2
-1
lines changed Expand file tree Collapse file tree 3 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -560,6 +560,7 @@ extern {
560
560
pub fn __sched_cpualloc ( count : :: size_t ) -> * mut :: cpu_set_t ;
561
561
pub fn __sched_cpufree ( set : * mut :: cpu_set_t ) ;
562
562
pub fn __sched_cpucount ( setsize : :: size_t , set : * mut cpu_set_t ) -> :: c_int ;
563
+ pub fn sched_getcpu ( ) -> :: c_int ;
563
564
}
564
565
565
566
cfg_if ! {
Original file line number Diff line number Diff line change @@ -506,6 +506,7 @@ extern {
506
506
pub fn pthread_setaffinity_np ( thread : :: pthread_t ,
507
507
cpusetsize : :: size_t ,
508
508
cpuset : * const :: cpu_set_t ) -> :: c_int ;
509
+ pub fn sched_getcpu ( ) -> :: c_int ;
509
510
}
510
511
511
512
cfg_if ! {
Original file line number Diff line number Diff line change @@ -804,7 +804,6 @@ extern {
804
804
pub fn stat64 ( path : * const c_char , buf : * mut stat64 ) -> :: c_int ;
805
805
pub fn eventfd ( init : :: c_uint , flags : :: c_int ) -> :: c_int ;
806
806
pub fn sysinfo ( info : * mut :: sysinfo ) -> :: c_int ;
807
- pub fn sched_getcpu ( ) -> :: c_int ;
808
807
}
809
808
810
809
cfg_if ! {
You can’t perform that action at this time.
0 commit comments