AWS IoT Device SDK C:
Task Pool
Task pool library
|
Return to main page ↑ |
Creates one instance of a task pool.
This function should be called by the user to initialize one instance of a task pool. The task pool instance will be created around the storage pointed to by the pTaskPool
parameter. This function will create the minimum number of threads requested by the user through an instance of the IotTaskPoolInfo_t type specified with the pInfo
parameter. This function does not allocate memory to hold the task pool data structures and state, but it may allocates memory to hold the dependent data structures, e.g. the threads of the task pool.
[in] | pInfo | A pointer to the task pool initialization data. |
[out] | pTaskPool | A pointer to the task pool handle to be used after initialization. The pointer pTaskPool will hold a valid handle only if (IotTaskPool_Create) completes successfully. |