Determine whether a task is in a final state
| 36 | |
| 37 | // Determine whether a task is in a final state |
| 38 | inline bool is_finished(task_state s) |
| 39 | { |
| 40 | return s == task_state::completed || s == task_state::canceled; |
| 41 | } |
| 42 | |
| 43 | // Virtual function table used to allow dynamic dispatch for task objects. |
| 44 | // While this is very similar to what a compiler would generate with virtual |
no outgoing calls
no test coverage detected