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

Creates a job for the task pool around a user-provided storage.

void * pUserContext,
IotTaskPoolJobStorage_t * const pJobStorage,
IotTaskPoolJob_t * const pJob );

This function may allocate memory to hold the state for a job.

Parameters
[in]userCallbackA user-specified callback for the job.
[in]pUserContextA user-specified context for the callback.
[in,out]pJobStorageThe storage for the job data structure.
[out]pJobA 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....
Returns
One of the following: