优化 watchdog tfe worker thread 的实现逻辑

This commit is contained in:
luwenpeng
2021-08-20 11:32:33 +08:00
parent c41a67ca2b
commit f764a4bae1
10 changed files with 193 additions and 44 deletions

View File

@@ -11,6 +11,7 @@ struct tfe_thread_ctx
{
struct tfe_proxy *proxy;
pthread_t thr;
int readable_tid;
unsigned int thread_id;
unsigned int load;

View File

@@ -118,6 +118,7 @@ struct tfe_proxy
struct acceptor_kni_v3 * kni_v3_acceptor;
struct sender_scm * scm_sender;
struct watchdog_kni * watchdog_kni;
struct watchdog_tfe * watchdog_tfe;
/* DEBUG OPTIONS */
unsigned int tcp_all_passthrough;

View File

@@ -0,0 +1,7 @@
#ifndef TFE_WATCHDOG_TFE_H
#define TFE_WATCHDOG_TFE_H
struct watchdog_tfe;
struct watchdog_tfe *watchdog_tfe_create(struct tfe_proxy *proxy, const char *profile, void *logger);
#endif //TFE_WATCHDOG_TFE_H