diff options
| author | luwenpeng <[email protected]> | 2021-04-21 11:51:30 +0800 |
|---|---|---|
| committer | luwenpeng <[email protected]> | 2021-04-21 11:51:30 +0800 |
| commit | 1c37ae746df4e8cb4cb242af5a9a2ce4a95a0d21 (patch) | |
| tree | e09d271cfa9d632c1659ec21c4246fc4273c13d3 /platform/include | |
| parent | 3e020b9e28e9126f2544557705c2006047053d36 (diff) | |
TSG-5978 TFE 与 KNI 保活的 watchdog 线程增加对 tfe worker 线程健康状态检测的功能develop-4.4
Diffstat (limited to 'platform/include')
| -rw-r--r-- | platform/include/internal/platform.h | 2 | ||||
| -rw-r--r-- | platform/include/internal/proxy.h | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/platform/include/internal/platform.h b/platform/include/internal/platform.h index 9868353..00371ca 100644 --- a/platform/include/internal/platform.h +++ b/platform/include/internal/platform.h @@ -17,7 +17,7 @@ struct tfe_thread_ctx struct event_base * evbase; struct evdns_base* dnsbase; struct evhttp_connection* evhttp; - unsigned char running; + time_t lastime; unsigned int nr_modules; const struct tfe_plugin * modules; diff --git a/platform/include/internal/proxy.h b/platform/include/internal/proxy.h index 9c19108..e0978fc 100644 --- a/platform/include/internal/proxy.h +++ b/platform/include/internal/proxy.h @@ -100,6 +100,7 @@ struct tfe_proxy void * fs_handle; unsigned int nr_work_threads; struct tfe_thread_ctx * work_threads[TFE_THREAD_MAX]; + int make_work_thread_sleep; unsigned int nr_modules; struct tfe_plugin * modules; |
