-
Notifications
You must be signed in to change notification settings - Fork 72
/
Copy pathmain.rs
49 lines (32 loc) · 780 Bytes
/
main.rs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
use thread::*;
fn main() {
start_one_thread();
start_one_thread_result();
start_two_threads();
start_n_threads();
current_thread();
start_thread_with_sleep();
start_thread_with_yield_now();
start_thread_with_priority();
thread_builder();
start_one_thread_with_move();
start_threads_with_threadlocal();
thread_park();
thread_park2();
thread_park_timeout();
start_scoped_threads();
crossbeam_scope();
rayon_scope();
send_wrapper();
print_thread_amount();
control_thread();
#[cfg(not(target_os = "macos"))]
use_affinity();
go_thread();
scopeguard_defer();
park_thread();
panic_example();
panic_caught_example();
info();
join_all_example();
}