Functions
MyQtt Thread Pool: Pool of threads which runns user defined async notifications.

Functions

void myqtt_thread_pool_add (MyQttCtx *ctx, int threads)
 Allows to increase the thread pool running on the provided context with the provided amount of threads. More...
 
void myqtt_thread_pool_event_stats (MyQttCtx *ctx, int *events_installed)
 Allows to get various stats from events installed.
 
int myqtt_thread_pool_get_num (void)
 Returns how many threads have the given MyQttThreadPool. More...
 
int myqtt_thread_pool_get_running_threads (MyQttCtx *ctx)
 Returns the running threads the given pool have. More...
 
void myqtt_thread_pool_init (MyQttCtx *ctx, int max_threads)
 Init the MyQtt Thread Pool subsystem. More...
 
int myqtt_thread_pool_new_event (MyQttCtx *ctx, long microseconds, MyQttThreadAsyncEvent event_handler, axlPointer user_data, axlPointer user_data2)
 Allows to install a new async event represented by the event handler provided. More...
 
axl_bool myqtt_thread_pool_new_task (MyQttCtx *ctx, MyQttThreadFunc func, axlPointer data)
 *** DEPRECATED** Queue a new task inside the MyQttThreadPool. More...
 
axl_bool myqtt_thread_pool_new_task_full (MyQttCtx *ctx, MyQttThreadFunc func, axlPointer data, axlDestroyFunc destroy_data)
 Queue a new task inside the MyQttThreadPool. More...
 
void myqtt_thread_pool_remove (MyQttCtx *ctx, int threads)
 Allows to decrease the thread pool running on the provided context with the provided amount of threads. More...
 
axl_bool myqtt_thread_pool_remove_event (MyQttCtx *ctx, int event_id)
 Allows to remove an event installed by myqtt_thread_pool_new_event. More...
 
void myqtt_thread_pool_set_exclusive_pool (MyQttCtx *ctx, axl_bool value)
 Allows to configure current configuration for threads inside the thread pool created. More...
 
void myqtt_thread_pool_set_num (int number)
 Allows to configure the number of threads inside the MyQtt Thread Pool module. More...
 
void myqtt_thread_pool_setup (MyQttCtx *ctx, int thread_max_limit, int thread_add_step, int thread_add_period, axl_bool auto_remove)
 Allows to configure thread pool with several parameters to react to working peaks on thread in pool. More...
 
void myqtt_thread_pool_stats (MyQttCtx *ctx, int *running_threads, int *waiting_threads, int *pending_tasks)
 Allows to get current stats of the myqtt thread pool. More...
 

Detailed Description