MCPcopy Create free account
hub / github.com/anthonywilliams/ccia_code_samples / f

Function f

listings/listing_2.2.cpp:26–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24{}
25
26void f()
27{
28 int some_local_state=0;
29 func my_func(some_local_state);
30 std::thread t(my_func);
31 try
32 {
33 do_something_in_current_thread();
34 }
35 catch(...)
36 {
37 t.join();
38 throw;
39 }
40 t.join();
41}
42
43int main()
44{

Callers 1

mainFunction · 0.70

Calls 1

Tested by

no test coverage detected