Sign in
fuchsia
/
third_party
/
llvm-project
/
d664c9066840ab57314f0de99fb4e5902b51f8cb
/
.
/
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
;
}