axis2_thread_pool_ops Struct Reference
[thread pool]

Axis2 thread_pool. More...

#include <axis2_thread_pool.h>

List of all members.

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)


Detailed Description

Axis2 thread_pool.

Encapsulator for thread pooling routines


Member Data Documentation

axis2_status_t( * axis2_thread_pool_ops::exit_thread)(axis2_thread_pool_t *pool, axis2_thread_t *thd)

Stop the execution of current thread

Parameters:
thd thread to be stopped
Returns:
status of the operation

axis2_status_t( * axis2_thread_pool_ops::free)(axis2_thread_pool_t *pool)

Frees resources used by thread_pool

Parameters:
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

Parameters:
func function to be executed in the new thread
data arguments to be passed to the function
Returns:
pointer to a thread in ready state.

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.

Parameters:
thd The thread to joined
Returns:
status of the operation

axis2_status_t( * axis2_thread_pool_ops::thread_detach)(axis2_thread_pool_t *pool, axis2_thread_t *thd)

Detaches a thread

Parameters:
thd thread to be detached
Returns:
status of the operation


The documentation for this struct was generated from the following file:
Generated on Tue Oct 3 18:21:20 2006 for Axis2/C by  doxygen 1.4.7