AWS IoT Device SDK C:
Task Pool
Task pool library
|
Return to main page ↑ |
Recycles a job into the task pool job cache.
This function will try and recycle the job into the task pool cache. If the cache is full, the job memory is destroyed as if the user called IotTaskPool_DestroyRecyclableJob. The job should be recycled into the task pool instance from where it was allocated. Failure to do so will yield undefined results. A job should not be recycled twice. A job that was previously scheduled but not completed or canceled cannot be safely recycled. An attempt to do so will result in an IOT_TASKPOOL_ILLEGAL_OPERATION error.
[in] | taskPool | A handle to the task pool, e.g. as returned by a call to IotTaskPool_Create. |
[out] | job | A pointer to a job that was create with a call to IotTaskPool_CreateJob. |
taskPool
used in this function should be the same used to create the job pointed to by job
, or the results will be undefined.