Task::OnAbandon

Task::OnAbandon
virtual void OnAbandon(bool started);
Description

Override OnAbandon to detect when the task was removed from the task manager by a call to TaskManager::AbandonTask. This call can take place under two circumstances: 

1. If the task wasn't started yet. In this case, started will be false. If task controls synchronization resources waited on by any threads, it should signal them with abandon code. 

2. If the task was started, it can choose to either follow a custom cancel work protocol, or just run to completion.

Parameters
Parameters 
Description 
bool started 
Boolean flag to determine if the task was started or not. A Boolean value of true indicates that the task is started and a value of false indicates that the task is not started.