void myqtt_thread_pool_init ( MyQttCtx ctx,
int  max_threads 
)

Init the MyQtt Thread Pool subsystem.

Initializes the myqtt thread pool. This pool is used to invoke msg receive handler (MyQttOnMsgReceived) and other async handlers.

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

References myqtt_async_queue_new(), myqtt_mutex_create(), and myqtt_thread_pool_add().

Referenced by myqtt_init_ctx().