aboutsummaryrefslogtreecommitdiff
path: root/lldb/test/API/commands/trace/multiple-threads/main.cpp
blob: f6c58af9cbf71f757a6d0b64f104d58ef3acf374 (plain)
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 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;
}