File tree Expand file tree Collapse file tree 6 files changed +17
-129
lines changed 
sys_common/thread_parking Expand file tree Collapse file tree 6 files changed +17
-129
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ pub mod thread;
2222#[ cfg( target_thread_local) ]  
2323pub  mod  thread_local_dtor; 
2424pub  mod  thread_local_key; 
25+ pub  mod  thread_parking; 
2526pub  mod  time; 
2627
2728mod  common; 
Original file line number Diff line number Diff line change 1+ use  crate :: pin:: Pin ; 
2+ use  crate :: time:: Duration ; 
3+ 
4+ pub  struct  Parker  { } 
5+ 
6+ impl  Parker  { 
7+     pub  unsafe  fn  new_in_place ( _parker :  * mut  Parker )  { } 
8+     pub  unsafe  fn  park ( self :  Pin < & Self > )  { } 
9+     pub  unsafe  fn  park_timeout ( self :  Pin < & Self > ,  _dur :  Duration )  { } 
10+     pub  fn  unpark ( self :  Pin < & Self > )  { } 
11+ } 
Original file line number Diff line number Diff line change @@ -49,6 +49,8 @@ pub mod thread;
4949pub  mod  thread_local_dtor; 
5050#[ path = "../unsupported/thread_local_key.rs" ]  
5151pub  mod  thread_local_key; 
52+ #[ path = "../unsupported/thread_parking.rs" ]  
53+ pub  mod  thread_parking; 
5254pub  mod  time; 
5355
5456#[ path = "../unsupported/common.rs" ]  
Original file line number Diff line number Diff line change @@ -70,6 +70,8 @@ cfg_if::cfg_if! {
7070        pub  mod  once; 
7171        #[ path = "../unsupported/thread.rs" ] 
7272        pub  mod  thread; 
73+         #[ path = "../unsupported/thread_parking.rs" ] 
74+         pub  mod  thread_parking; 
7375    } 
7476} 
7577
  Load Diff This file was deleted. 
Original file line number Diff line number Diff line change @@ -18,10 +18,7 @@ cfg_if::cfg_if! {
1818    ) ) ]  { 
1919        mod  id; 
2020        pub  use  id:: Parker ; 
21-     }  else if  #[ cfg( any( windows,  target_family = "unix" ) ) ]  { 
22-         pub  use  crate :: sys:: thread_parking:: Parker ; 
2321    }  else { 
24-         mod  generic; 
25-         pub  use  generic:: Parker ; 
22+         pub  use  crate :: sys:: thread_parking:: Parker ; 
2623    } 
2724} 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments