28 #ifndef IOT_TASKPOOL_TYPES_H_ 29 #define IOT_TASKPOOL_TYPES_H_ 32 #include "iot_config.h" 50 typedef enum IotTaskPoolError
97 typedef enum IotTaskPoolJobStatus
164 typedef struct IotTaskPoolJobStorage
202 void * pUserContext );
214 typedef struct IotTaskPoolInfo
266 #define IOT_TASKPOOL_INFO_INITIALIZER_SMALL { .minThreads = 1, .maxThreads = 1, .stackSize = IOT_THREAD_DEFAULT_STACK_SIZE, .priority = IOT_THREAD_DEFAULT_PRIORITY } 268 #define IOT_TASKPOOL_INFO_INITIALIZER_MEDIUM { .minThreads = 1, .maxThreads = 2, .stackSize = IOT_THREAD_DEFAULT_STACK_SIZE, .priority = IOT_THREAD_DEFAULT_PRIORITY } 270 #define IOT_TASKPOOL_INFO_INITIALIZER_LARGE { .minThreads = 2, .maxThreads = 3, .stackSize = IOT_THREAD_DEFAULT_STACK_SIZE, .priority = IOT_THREAD_DEFAULT_PRIORITY } 272 #define IOT_TASKPOOL_INFO_INITIALIZER_XLARGE { .minThreads = 2, .maxThreads = 4, .stackSize = IOT_THREAD_DEFAULT_STACK_SIZE, .priority = IOT_THREAD_DEFAULT_PRIORITY } 274 #define IOT_TASKPOOL_INFO_INITIALIZER IOT_TASKPOOL_INFO_INITIALIZER_MEDIUM 276 #define IOT_TASKPOOL_INITIALIZER NULL 278 #define IOT_TASKPOOL_JOB_STORAGE_INITIALIZER { { NULL, NULL }, NULL, NULL, 0, IOT_TASKPOOL_STATUS_UNDEFINED } 280 #define IOT_TASKPOOL_JOB_INITIALIZER NULL 290 #define IOT_TASKPOOL_JOB_HIGH_PRIORITY ( ( uint32_t ) 0x00000001 ) 298 #define IOT_SYSTEM_TASKPOOL ( IotTaskPool_GetSystemTaskPool() ) Task pool operation failed because it is illegal.
Definition: iot_taskpool_types.h:65
Job has been queued for execution.
Definition: iot_taskpool_types.h:110
Task pool operation failed because allocating memory failed.
Definition: iot_taskpool_types.h:70
Task pool cancellation failed.
Definition: iot_taskpool_types.h:80
Task pool operation failed because of an invalid parameter.
Definition: iot_taskpool_types.h:75
Job has been scheduled for deferred execution.
Definition: iot_taskpool_types.h:116
struct _taskPoolJob * IotTaskPoolJob_t
Opaque handle of a Task Pool Job.
Definition: iot_taskpool_types.h:190
Job status is undefined.
Definition: iot_taskpool_types.h:134
IotTaskPoolJobStatus_t
Status codes of task pool Job.
Definition: iot_taskpool_types.h:98
Job is ready to be scheduled.
Definition: iot_taskpool_types.h:104
Task pool operation general failure.
Definition: iot_taskpool_types.h:85
Job has been canceled before executing.
Definition: iot_taskpool_types.h:128
struct _taskPool * IotTaskPool_t
Opaque handle of a Task Pool instance.
Definition: iot_taskpool_types.h:156
Task pool operation completed successfully.
Definition: iot_taskpool_types.h:55
Task pool operation failed because at least one parameter is invalid.
Definition: iot_taskpool_types.h:60
IotTaskPoolError_t
Return codes of task pool functions.
Definition: iot_taskpool_types.h:50
The job storage data structure provides the storage for a statically allocated Task Pool Job instance...
Definition: iot_taskpool_types.h:166
Initialization information to create one task pool instance.
Definition: iot_taskpool_types.h:218
Job is executing.
Definition: iot_taskpool_types.h:122
void(* IotTaskPoolRoutine_t)(IotTaskPool_t pTaskPool, IotTaskPoolJob_t pJob, void *pUserContext)
Callback type for a user callback.
Definition: iot_taskpool_types.h:203