void valvula_thread_pool_init ( ValvulaCtx ctx,
int  max_threads 
)

Init the Valvula Thread Pool subsystem.

Initializes the valvula thread pool. This pool is mainly used to invoke frame receive handler at any level. Because we have always running threads to send messages (the valvula writer and sequencer) this pool is not needed.

Among the valvula features are listed to create connection, channels and also close channel in a asynchronous way. This means the those process are run inside a separate thread. All those process are also run inside the thread pool.

Parameters
ctxThe context where the operation will be performed.
max_threadshow many threads to start.

References valvula_async_queue_new(), valvula_mutex_create(), and valvula_thread_pool_add().

Referenced by valvula_init_ctx().