AWS IoT Device SDK C:
Task Pool
Task pool library
|
Return to main page ↑ |
This function un-initializes a job.
This function will destroy a job created with IotTaskPool_CreateRecyclableJob. A job should not be destroyed twice. A job that was previously scheduled but has not completed yet should not be destroyed, but rather the application should attempt to cancel it first by calling IotTaskPool_TryCancel. An attempt to destroy a job that was scheduled but not yet executed or canceled, may result in a IOT_TASKPOOL_ILLEGAL_OPERATION error.
[in] | taskPool | A handle to the task pool, e.g. as returned by a call to IotTaskPool_Create or IotTaskPool_CreateSystemTaskPool. |
[in] | job | A handle to a job that was create with a call to IotTaskPool_CreateJob. |