#include <axis2_thread_pool.h>
Public Attributes | |
axis2_thread_t *(* | get_thread )(axis2_thread_pool_t *pool, axis2_thread_start_t func, void *data) |
axis2_status_t(* | join_thread )(axis2_thread_pool_t *pool, axis2_thread_t *thd) |
axis2_status_t(* | exit_thread )(axis2_thread_pool_t *pool, axis2_thread_t *thd) |
axis2_status_t(* | thread_detach )(axis2_thread_pool_t *pool, axis2_thread_t *thd) |
axis2_status_t(* | free )(axis2_thread_pool_t *pool) |
Encapsulator for thread pooling routines
axis2_status_t( * axis2_thread_pool_ops::exit_thread)(axis2_thread_pool_t *pool, axis2_thread_t *thd) |
Stop the execution of current thread
thd | thread to be stopped |
axis2_status_t( * axis2_thread_pool_ops::free)(axis2_thread_pool_t *pool) |
Frees resources used by thread_pool
pool | thread_pool to be freed |
axis2_thread_t*( * axis2_thread_pool_ops::get_thread)(axis2_thread_pool_t *pool, axis2_thread_start_t func, void *data) |
Retrives a thread from the thread pool
func | function to be executed in the new thread | |
data | arguments to be passed to the function |
axis2_status_t( * axis2_thread_pool_ops::join_thread)(axis2_thread_pool_t *pool, axis2_thread_t *thd) |
Blocks until the desired thread stops executing.
thd | The thread to joined |
axis2_status_t( * axis2_thread_pool_ops::thread_detach)(axis2_thread_pool_t *pool, axis2_thread_t *thd) |
Detaches a thread
thd | thread to be detached |