1 | #include <thread> |
---|---|
2 | |
3 | void thread_func() { |
4 | // Set a breakpoint here |
5 | } |
6 | |
7 | int |
8 | main() |
9 | { |
10 | // Set a breakpoint here |
11 | std::thread stopped_thread(thread_func); |
12 | stopped_thread.join(); |
13 | return 0; |
14 | } |
15 |
1 | #include <thread> |
---|---|
2 | |
3 | void thread_func() { |
4 | // Set a breakpoint here |
5 | } |
6 | |
7 | int |
8 | main() |
9 | { |
10 | // Set a breakpoint here |
11 | std::thread stopped_thread(thread_func); |
12 | stopped_thread.join(); |
13 | return 0; |
14 | } |
15 |