Task Pool API Reference
Task pool library
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.
IotTaskPool_t
struct _taskPool * IotTaskPool_t
Opaque handle of a Task Pool instance.
Definition: iot_taskpool_types.h:213
IotTaskPoolError_t
IotTaskPoolError_t
Return codes of task pool functions.
Definition: iot_taskpool_types.h:50
IotTaskPool_ScheduleDeferred
IotTaskPoolError_t IotTaskPool_ScheduleDeferred(IotTaskPool_t taskPool, IotTaskPoolJob_t job, uint32_t timeMs)
This function schedules a job created with IotTaskPool_CreateJob against the task pool pointed to by ...
Definition: iot_taskpool.c:451
IotTaskPoolJob_t
struct _taskPoolJob * IotTaskPoolJob_t
Opaque handle of a Task Pool Job.
Definition: iot_taskpool_types.h:246