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

This function schedules a job created with IotTaskPool_CreateJob against the task pool pointed to by taskPool to be executed after a user-defined time interval.

See Design for a description of the jobs lifetime and interaction with the threads used in the task pool library.

Parameters
[in]taskPoolA handle to the task pool that must have been previously initialized with. a call to IotTaskPool_Create.
[in]jobA job to schedule for execution. This must be first initialized with a call to IotTaskPool_CreateJob.
[in]timeMsThe time in milliseconds to wait before scheduling the job.
Returns
One of the following:
Note
This function will not allocate memory.
Warning
The taskPool used in this function should be the same used to create the job pointed to by job, or the results will be undefined.