Classes | |
struct | axis2_thread_pool_ops |
Axis2 thread_pool. More... | |
struct | axis2_thread_pool |
Thread Pool struct Axis2 Thread Pool. More... | |
Defines | |
#define | AXIS2_THREAD_POOL_GET_THREAD(thread_pool, func, data) ((thread_pool)->ops->get_thread(thread_pool, func, data)) |
#define | AXIS2_THREAD_POOL_JOIN_THREAD(thread_pool, thd) ((thread_pool)->ops->join_thread(thread_pool, thd)) |
#define | AXIS2_THREAD_POOL_EXIT_THREAD(thread_pool, thd) ((thread_pool)->ops->exit_thread(thread_pool, thd)) |
#define | AXIS2_THREAD_POOL_THREAD_DETACH(thread_pool, thd) ((thread_pool)->ops->thread_detach(thread_pool, thd)) |
#define | AXIS2_THREAD_POOL_FREE(thread_pool) ((thread_pool)->ops->free(thread_pool)) |
Typedefs | |
typedef axis2_thread_pool_ops | axis2_thread_pool_ops_t |
typedef axis2_thread_pool | axis2_thread_pool_t |
Functions | |
AXIS2_EXTERN axis2_thread_pool_t * | axis2_thread_pool_init (axis2_allocator_t *allocator) |
AXIS2_EXTERN struct axis2_env * | axis2_init_thread_env (const struct axis2_env *system_env) |
This function can be used to initialize the environment in case of spawning a new thread via a thread function
AXIS2_EXTERN axis2_thread_pool_t* axis2_thread_pool_init | ( | axis2_allocator_t * | allocator | ) |
Initializes (creates) an thread_pool.
allocator | user defined allocator for the memory allocation. |