int myqtt_thread_pool_get_num ( void  )

Returns how many threads have the given MyQttThreadPool.

This function is for internal myqtt library purpose. This function returns how many thread must be created inside the myqtt thread pool which actually is the one which dispatch all msg received callback and other async notifications.

This function pay attention to the environment var "MYQTT_THREADS" so user can control how many thread are created. In case this var is not defined the function will return 5. In case the var is defined but using a wrong value, that is, an non positive integer, the function will abort the myqtt execution and consequently the application over it.

the number of threads to be created.

References myqtt_support_getenv_int().

Referenced by myqtt_init_ctx().