| 11 | #include "Engine/Profiler/ProfilerCPU.h" |
| 12 | |
| 13 | void Task::Start() |
| 14 | { |
| 15 | if (GetState() != TaskState::Created) |
| 16 | return; |
| 17 | |
| 18 | OnStart(); |
| 19 | |
| 20 | // Change state |
| 21 | SetState(TaskState::Queued); |
| 22 | |
| 23 | // Add task to the execution queue |
| 24 | Enqueue(); |
| 25 | } |
| 26 | |
| 27 | void Task::Cancel() |
| 28 | { |
no test coverage detected