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

Functions

void vortex_thread_pool_add (VortexCtx *ctx, int threads)
 Allows to increase the thread pool running on the provided context with the provided amount of threads. More...
 
void vortex_thread_pool_event_stats (VortexCtx *ctx, int *events_installed)
 Allows to get various stats from events installed. More...
 
int vortex_thread_pool_get_num (void)
 Returns how many threads have the given VortexThreadPool. More...
 
int vortex_thread_pool_get_running_threads (VortexCtx *ctx)
 Returns the running threads the given pool have. More...
 
void vortex_thread_pool_init (VortexCtx *ctx, int max_threads)
 Init the Vortex Thread Pool subsystem. More...
 
int vortex_thread_pool_new_event (VortexCtx *ctx, long microseconds, VortexThreadAsyncEvent event_handler, axlPointer user_data, axlPointer user_data2)
 Allows to install a new async event represented by the event handler provided. More...
 
void vortex_thread_pool_new_task (VortexCtx *ctx, VortexThreadFunc func, axlPointer data)
 Queue a new task inside the VortexThreadPool. More...
 
void vortex_thread_pool_remove (VortexCtx *ctx, int threads)
 Allows to decrease the thread pool running on the provided context with the provided amount of threads. More...
 
axl_bool vortex_thread_pool_remove_event (VortexCtx *ctx, int event_id)
 Allows to remove an event installed by vortex_thread_pool_new_event. More...
 
void vortex_thread_pool_set_exclusive_pool (VortexCtx *ctx, axl_bool value)
 Allows to configure current configuration for threads inside the thread pool created. More...
 
void vortex_thread_pool_set_num (int number)
 Allows to configure the number of threads inside the Vortex Thread Pool module. More...
 
void vortex_thread_pool_setup (VortexCtx *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 vortex_thread_pool_stats (VortexCtx *ctx, int *running_threads, int *waiting_threads, int *pending_tasks)
 Allows to get current stats of the vortex thread pool. More...
 

Detailed Description