Task Pool API Reference
Task pool library
IotTaskPool_ScheduleDeferred

This function schedules a job created with IotTaskPool_CreateJob to be executed after a user-defined time interval.

Parameters
[in]taskPoolA handle to an initialized taskpool.
[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:147
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 to be executed after a user-defined ...
Definition: iot_taskpool.c:328
IotTaskPoolJob_t
struct _taskPoolJob * IotTaskPoolJob_t
Opaque handle of a Task Pool Job.
Definition: iot_taskpool_types.h:198