Task Pool API Reference
Task pool library
IotTaskPool_SetMaxThreads

Sets the maximum number of threads for one instance of a task pool.

This function sets the maximum number of threads for the task pool pointed to by taskPool.

If the number of currently active threads in the task pool is greater than maxThreads, this function causes the task pool to shrink the number of active threads.

Parameters
[in]taskPoolA handle to the task pool that must have been previously initialized with a call to IotTaskPool_Create or IotTaskPool_CreateSystemTaskPool.
[in]maxThreadsThe maximum number of threads for the task pool.
Returns
One of the following:
IotTaskPool_t
struct _taskPool * IotTaskPool_t
Opaque handle of a Task Pool instance.
Definition: iot_taskpool_types.h:213
IotTaskPool_SetMaxThreads
IotTaskPoolError_t IotTaskPool_SetMaxThreads(IotTaskPool_t taskPool, uint32_t maxThreads)
Sets the maximum number of threads for one instance of a task pool.
IotTaskPoolError_t
IotTaskPoolError_t
Return codes of task pool functions.
Definition: iot_taskpool_types.h:50