aboutsummaryrefslogtreecommitdiff
path: root/lldb/test/API/functionalities/scripted_process/baz.cpp
blob: e94b99454009fd82fba12e69a8f798a9d3552010 (plain)
1
2
3
4
5
6
7
8
9
10
#include "baz.h"

#include <math.h>

int baz(int &j, std::mutex &mutex, std::condition_variable &cv) {
  std::unique_lock<std::mutex> lock(mutex);
  cv.wait(lock, [&j] { return j == 42 * 42; });
  int k = sqrt(j);
  return k; // break here
}