void valvula_thread_pool_remove ( ValvulaCtx 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 valvula_mutex_lock(), and valvula_mutex_unlock().