File tree 5 files changed +356
-179
lines changed
5 files changed +356
-179
lines changed Original file line number Diff line number Diff line change @@ -6,4 +6,13 @@ edition = "2021"
6
6
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
7
7
8
8
[dependencies ]
9
+ send_wrapper = " 0.6.0"
9
10
thread-priority = " 0.9.2"
11
+ thread-amount = " 0.1.3"
12
+ crossbeam = " 0.8.2"
13
+ thread-control = " 0.1.2"
14
+ affinity = " 0.1.2"
15
+ rayon = " 1.5.3"
16
+ go-spawn = " 0.1.2"
17
+ num_threads = " 0.1.6"
18
+ parking = " 2.0.0"
Original file line number Diff line number Diff line change 1
- pub mod stdthread ;
1
+ pub mod threads ;
2
2
3
- pub use stdthread :: * ;
3
+ pub use threads :: * ;
Original file line number Diff line number Diff line change @@ -8,11 +8,25 @@ fn main() {
8
8
thread_builder ( ) ;
9
9
10
10
start_one_thread_with_move ( ) ;
11
- start_one_thread_with_thradlocal ( ) ;
11
+ start_one_thread_with_threadlocal ( ) ;
12
12
13
13
thread_park ( ) ;
14
14
thread_park_timeout ( ) ;
15
15
16
16
start_scoped_threads ( ) ;
17
+ crossbeam_scope ( ) ;
18
+ rayon_scope ( ) ;
19
+
20
+ send_wrapper ( ) ;
21
+
22
+ print_thread_amount ( ) ;
23
+
24
+ control_thread ( ) ;
25
+
26
+ use_affinity ( ) ;
27
+
28
+ go_thread ( ) ;
29
+
30
+ park_thread ( ) ;
17
31
}
18
32
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments