void vortex_thread_pool_init ( VortexCtx ctx,
int  max_threads 

Init the Vortex Thread Pool subsystem.

Initializes the vortex 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 vortex writer and sequencer) this pool is not needed.

Among the vortex 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.

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

References vortex_async_queue_new(), vortex_mutex_create(), and vortex_thread_pool_add().

Referenced by vortex_init_ctx().