5 #ifndef EVENT_THREAD_H_     6 #define EVENT_THREAD_H_ void event_thread_set_stack_size(size_t stack_size)
 
struct event_tpool_thread_t * EventTPoolThread
 
EventTPoolThread event_tpool_thread_new(size_t thread_size)
create and thread instance 
 
This is API as ThreadPool data definition for ThreadPooldesign petten by using libevent. 
 
int event_tpool_thread_unload_plugin(void)
 
void event_tpool_thread_add(EventTPoolThread this, EventSubscriber subscriber, void *arg)
add new subscriber 
 
EventSubscriber class instance definition, this is storaged in any threads. 
 
void event_tpool_thread_start(EventTPoolThread this)
start thread 
 
void event_thread_atfork_child(EventTPoolThread this)
 
void event_tpool_thread_del(EventTPoolThread this, int fd)
delete subscriber 
 
int event_tpool_thread_load_plugin(const char *plugin_path)
 
void event_tpool_thread_update(EventTPoolThread this, EventSubscriber subscriber, void *arg)
update subscriber 
 
void event_tpool_thread_stop(EventTPoolThread this)
stop thread, and remove resource