AWS IoT Device SDK C: Task Pool
Task pool library
Return to main page ↑
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: