| 16 | } |
| 17 | |
| 18 | void task() |
| 19 | { |
| 20 | while(!task_complete() && !task_cancelled) |
| 21 | { |
| 22 | do_next_operation(); |
| 23 | } |
| 24 | if(task_cancelled) |
| 25 | { |
| 26 | perform_cleanup(); |
| 27 | } |
| 28 | else |
| 29 | { |
| 30 | post_gui_event(task_complete); |
| 31 | } |
| 32 | } |
| 33 | |
| 34 | void process(event_data const& event) |
| 35 | { |
no outgoing calls
no test coverage detected