design_pattern_for_c  V 1.00
event_thread.h File Reference

This is API of event thread. More...

#include "event_threadpool_data.h"
#include "pthread.h"
Include dependency graph for event_thread.h:
This graph shows which files directly or indirectly include this file:

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_tEventTPoolThread
 

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)
 

Detailed Description

This is API of event thread.

Definition in file event_thread.h.

Typedef Documentation

◆ event_tpool_thread_t

Definition at line 13 of file event_thread.h.

◆ EventTPoolThread

Definition at line 13 of file event_thread.h.

Function Documentation

◆ event_thread_atfork_child()

void event_thread_atfork_child ( EventTPoolThread  this)

Definition at line 612 of file event_thread.c.

Here is the caller graph for this function:

◆ event_thread_set_stack_size()

void event_thread_set_stack_size ( size_t  stack_size)

Definition at line 619 of file event_thread.c.

Here is the caller graph for this function:

◆ event_tpool_thread_add()

void event_tpool_thread_add ( EventTPoolThread  this,
EventSubscriber  subscriber,
void *  arg 
)

add new subscriber

Definition at line 601 of file event_thread.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ event_tpool_thread_del()

void event_tpool_thread_del ( EventTPoolThread  this,
int  fd 
)

delete subscriber

Definition at line 609 of file event_thread.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ event_tpool_thread_load_plugin()

int event_tpool_thread_load_plugin ( const char *  plugin_path)

Definition at line 623 of file event_thread.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ event_tpool_thread_new()

EventTPoolThread event_tpool_thread_new ( size_t  thread_size)

create and thread instance

Definition at line 537 of file event_thread.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ event_tpool_thread_start()

void event_tpool_thread_start ( EventTPoolThread  this)

start thread

Definition at line 569 of file event_thread.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ event_tpool_thread_stop()

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.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ event_tpool_thread_unload_plugin()

int event_tpool_thread_unload_plugin ( void  )

Definition at line 649 of file event_thread.c.

Here is the caller graph for this function:

◆ event_tpool_thread_update()

void event_tpool_thread_update ( EventTPoolThread  this,
EventSubscriber  subscriber,
void *  arg 
)

update subscriber

Definition at line 604 of file event_thread.c.

Here is the call graph for this function:
Here is the caller graph for this function: