design_pattern_for_c  V 1.00
event_thread.h
Go to the documentation of this file.
1 
5 #ifndef EVENT_THREAD_H_
6 #define EVENT_THREAD_H_
8 #include "pthread.h"
9 
19 EventTPoolThread event_tpool_thread_new(size_t thread_size);
25 void event_tpool_thread_add(EventTPoolThread this, EventSubscriber subscriber, void * arg);
27 void event_tpool_thread_update(EventTPoolThread this, EventSubscriber subscriber, void * arg);
29 void event_tpool_thread_del(EventTPoolThread this, int fd);
30 
32 
33 void event_thread_set_stack_size(size_t stack_size);
34 
35 int event_tpool_thread_load_plugin(const char *plugin_path);
38 #endif
void event_thread_set_stack_size(size_t stack_size)
Definition: event_thread.c:619
struct event_tpool_thread_t * EventTPoolThread
Definition: event_thread.h:13
EventTPoolThread event_tpool_thread_new(size_t thread_size)
create and thread instance
Definition: event_thread.c:537
This is API as ThreadPool data definition for ThreadPooldesign petten by using libevent.
int event_tpool_thread_unload_plugin(void)
Definition: event_thread.c:649
void event_tpool_thread_add(EventTPoolThread this, EventSubscriber subscriber, void *arg)
add new subscriber
Definition: event_thread.c:601
EventSubscriber class instance definition, this is storaged in any threads.
void event_tpool_thread_start(EventTPoolThread this)
start thread
Definition: event_thread.c:569
thread information
Definition: event_thread.c:105
void event_thread_atfork_child(EventTPoolThread this)
Definition: event_thread.c:612
void event_tpool_thread_del(EventTPoolThread this, int fd)
delete subscriber
Definition: event_thread.c:609
int event_tpool_thread_load_plugin(const char *plugin_path)
Definition: event_thread.c:623
void event_tpool_thread_update(EventTPoolThread this, EventSubscriber subscriber, void *arg)
update subscriber
Definition: event_thread.c:604
void event_tpool_thread_stop(EventTPoolThread this)
stop thread, and remove resource
Definition: event_thread.c:585