AWS IoT Device SDK C:
Task Pool
Task pool library
|
Return to main page ↑ |
Creates a job for the task pool by allocating the job dynamically.
A recyclable job does not need to be allocated twice, but it can rather be reused through subsequent calls to IotTaskPool_CreateRecyclableJob.
[in] | taskPool | A handle to the task pool for which to create a recyclable job. |
[in] | userCallback | A user-specified callback for the job. |
[in] | pUserContext | A user-specified context for the callback. |
[out] | pJob | A pointer to an instance of IotTaskPoolJob_t that will be initialized when this function returns successfully. This handle can be used to inspect the job status with IotTaskPool_GetStatus or cancel the job with IotTaskPool_TryCancel, etc.... |