|
AWS IoT Device SDK C:
Task Pool
Task pool library
|
| Return to main page ↑ |
This function tries to cancel a job that was previously scheduled with IotTaskPool_Schedule.
A job can be canceled only if it is not yet executing, i.e. if its status is IOT_TASKPOOL_STATUS_READY or IOT_TASKPOOL_STATUS_SCHEDULED. Calling IotTaskPool_TryCancel on a job whose status is IOT_TASKPOOL_STATUS_COMPLETED, or IOT_TASKPOOL_STATUS_CANCELED will yield a IOT_TASKPOOL_CANCEL_FAILED return result.
| [in] | taskPool | A handle to the task pool that must have been previously initialized with a call to IotTaskPool_Create. |
| [in] | job | The job to cancel. |
| [out] | pStatus | The status of the job at the time of cancellation. |
taskPool used in this function should be the same used to create the job pointed to by job, or the results will be undefined.