void myqtt_thread_pool_remove ( MyQttCtx ctx,
int  threads 
)

Allows to decrease the thread pool running on the provided context with the provided amount of threads.

Parameters
ctxThe context where the thread pool will be decreased.
threadsThe amount of threads to remove from the pool.

The amount of threads can't be lower than current available threads from the pool and, the thread pool must have at minimum one thread running.

References myqtt_mutex_lock(), and myqtt_mutex_unlock().