优化 watchdog tfe worker thread 的实现逻辑
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
7
platform/include/internal/watchdog_tfe.h
Normal file
7
platform/include/internal/watchdog_tfe.h
Normal 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
|
||||
Reference in New Issue
Block a user