design_pattern_for_c
V 1.00
|
This is API of event thread. More...
Go to the source code of this file.
Typedefs | |
msg definition | |
typedef struct event_tpool_thread_t | event_tpool_thread_t |
typedef struct event_tpool_thread_t * | EventTPoolThread |
Functions | |
API for thread | |
EventTPoolThread | event_tpool_thread_new (size_t thread_size) |
create and thread instance More... | |
void | event_tpool_thread_start (EventTPoolThread this) |
start thread More... | |
void | event_tpool_thread_stop (EventTPoolThread this) |
stop thread, and remove resource More... | |
void | event_tpool_thread_add (EventTPoolThread this, EventSubscriber subscriber, void *arg) |
add new subscriber More... | |
void | event_tpool_thread_update (EventTPoolThread this, EventSubscriber subscriber, void *arg) |
update subscriber More... | |
void | event_tpool_thread_del (EventTPoolThread this, int fd) |
delete subscriber More... | |
void | event_thread_atfork_child (EventTPoolThread this) |
void | event_thread_set_stack_size (size_t stack_size) |
int | event_tpool_thread_load_plugin (const char *plugin_path) |
int | event_tpool_thread_unload_plugin (void) |
This is API of event thread.
Definition in file event_thread.h.
typedef struct event_tpool_thread_t event_tpool_thread_t |
Definition at line 13 of file event_thread.h.
typedef struct event_tpool_thread_t * EventTPoolThread |
Definition at line 13 of file event_thread.h.
void event_thread_atfork_child | ( | EventTPoolThread | this | ) |
void event_thread_set_stack_size | ( | size_t | stack_size | ) |
void event_tpool_thread_add | ( | EventTPoolThread | this, |
EventSubscriber | subscriber, | ||
void * | arg | ||
) |
add new subscriber
Definition at line 601 of file event_thread.c.
void event_tpool_thread_del | ( | EventTPoolThread | this, |
int | fd | ||
) |
delete subscriber
Definition at line 609 of file event_thread.c.
int event_tpool_thread_load_plugin | ( | const char * | plugin_path | ) |
Definition at line 623 of file event_thread.c.
EventTPoolThread event_tpool_thread_new | ( | size_t | thread_size | ) |
create and thread instance
Definition at line 537 of file event_thread.c.
void event_tpool_thread_start | ( | EventTPoolThread | this | ) |
start thread
Definition at line 569 of file event_thread.c.
void event_tpool_thread_stop | ( | EventTPoolThread | this | ) |
stop thread, and remove resource
stop thread, and remove resource
Definition at line 585 of file event_thread.c.
int event_tpool_thread_unload_plugin | ( | void | ) |
void event_tpool_thread_update | ( | EventTPoolThread | this, |
EventSubscriber | subscriber, | ||
void * | arg | ||
) |
update subscriber
Definition at line 604 of file event_thread.c.