AWS IoT Device SDK C: Task Pool
Task pool library
Return to main page ↑
IotTaskPool_Destroy

Destroys a task pool instance and collects all memory associated with a task pool and its satellite data structures.

This function should be called to destroy one instance of a task pool previously created with a call to IotTaskPool_Create or IotTaskPool_CreateSystemTaskPool. Calling this function release all underlying resources. After calling this function, any job scheduled but not yet executed will be canceled and destroyed. The taskPool instance will no longer be valid after this function returns.

Parameters
[in]taskPoolA handle to the task pool, e.g. as returned by a call to IotTaskPool_Create or IotTaskPool_CreateSystemTaskPool. The taskPool instance will no longer be valid after this function returns.
Returns
One of the following: