blob: 7721b5d84322430620c52c171a8e88b0260bf949 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#include <chrono>
#include <thread>
void
thread_function ()
{
// Set thread-specific breakpoint here.
std::this_thread::sleep_for(std::chrono::microseconds(100));
}
int
main ()
{
// Set main breakpoint here.
std::thread t(thread_function);
t.join();
thread_function();
return 0;
}
|