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

Function process

listings/listing_8.6.cpp:34–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32}
33
34void process(event_data const& event)
35{
36 switch(event.type)
37 {
38 case start_task:
39 task_cancelled=false;
40 task_thread=std::thread(task);
41 break;
42 case stop_task:
43 task_cancelled=true;
44 task_thread.join();
45 break;
46 case task_complete:
47 task_thread.join();
48 display_results();
49 break;
50 default:
51 //...
52 }
53}

Callers 1

gui_threadFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected