Sign in
android
/
toolchain
/
rustc
/
bcf972c0208490b0eb3ce3c170c2db486ba945b3
/
.
/
src
/
llvm-project
/
lldb
/
test
/
API
/
commands
/
trace
/
multiple-threads
/
main.cpp
blob: f6c58af9cbf71f757a6d0b64f104d58ef3acf374 [
file
] [
log
] [
blame
]
#include
<chrono>
#include
<thread>
void
f3
()
{
int
m
;
m
=
2
;
// thread 3
}
void
f2
()
{
int
n
;
n
=
1
;
// thread 2
std
::
thread t3
(
f3
);
t3
.
join
();
}
int
main
()
{
// main
std
::
thread t2
(
f2
);
t2
.
join
();
return
0
;
}