MCPcopy Create free account
hub / github.com/boostorg/stacktrace / main

Function main

test/thread_safety_checking.cpp:43–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41}
42
43int main() {
44 const auto t = std::chrono::steady_clock::now();
45
46 std::thread t1(main_test_loop);
47 std::thread t2(main_test_loop);
48 std::thread t3(main_test_loop);
49 main_test_loop();
50
51 t1.join();
52 t2.join();
53 t3.join();
54
55 const auto elapsed = t - std::chrono::steady_clock::now();
56 std::cout << "Elapsed: " << std::chrono::duration_cast<std::chrono::milliseconds>(
57 elapsed
58 ). count() << "ms";
59 return boost::report_errors();
60}

Callers

nothing calls this directly

Calls 1

main_test_loopFunction · 0.85

Tested by

no test coverage detected