This repository was archived by the owner on May 28, 2025. It is now read-only.
  
  
  
  
    
    
    
      
    
  
  
    
File tree Expand file tree Collapse file tree 5 files changed +16
-14
lines changed Expand file tree Collapse file tree 5 files changed +16
-14
lines changed Original file line number Diff line number Diff line change @@ -134,6 +134,10 @@ harness = false
134134name  = " floats" 
135135path  = " tests/floats/lib.rs" 
136136
137+ [[test ]]
138+ name  = " thread_local" 
139+ path  = " tests/thread_local/lib.rs" 
140+ 
137141[[bench ]]
138142name  = " stdbenches" 
139143path  = " benches/lib.rs" 
Original file line number Diff line number Diff line change 22
33#![ unstable( feature = "thread_local_internals" ,  issue = "none" ) ]  
44
5- #[ cfg( all( test,  not( any( target_os = "emscripten" ,  target_os = "wasi" ) ) ) ) ]  
6- mod  tests; 
7- 
8- #[ cfg( test) ]  
9- mod  dynamic_tests; 
10- 
115use  crate :: cell:: { Cell ,  RefCell } ; 
126use  crate :: error:: Error ; 
137use  crate :: fmt; 
Original file line number Diff line number Diff line change 1- use  crate :: cell:: RefCell ; 
2- use  crate :: collections:: HashMap ; 
3- use  crate :: thread_local; 
1+ use  std :: cell:: RefCell ; 
2+ use  std :: collections:: HashMap ; 
3+ use  std :: thread_local; 
44
55#[ test]  
66fn  smoke ( )  { 
Original file line number Diff line number Diff line change 1+ #[ cfg( not( any( target_os = "emscripten" ,  target_os = "wasi" ) ) ) ]  
2+ mod  tests; 
3+ 
4+ mod  dynamic_tests; 
Original file line number Diff line number Diff line change 1- use  crate :: cell:: { Cell ,  UnsafeCell } ; 
2- use  crate :: sync:: atomic:: { AtomicU8 ,  Ordering } ; 
3- use  crate :: sync:: { Arc ,  Condvar ,  Mutex } ; 
4- use  crate :: thread:: { self ,  Builder ,  LocalKey } ; 
5- use  crate :: thread_local; 
1+ use  std :: cell:: { Cell ,  UnsafeCell } ; 
2+ use  std :: sync:: atomic:: { AtomicU8 ,  Ordering } ; 
3+ use  std :: sync:: { Arc ,  Condvar ,  Mutex } ; 
4+ use  std :: thread:: { self ,  Builder ,  LocalKey } ; 
5+ use  std :: thread_local; 
66
77#[ derive( Clone ,  Default ) ]  
88struct  Signal ( Arc < ( Mutex < bool > ,  Condvar ) > ) ; 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments