From be8de2eaf4da5f80ff722baf0456ca36c0ebd4f0 Mon Sep 17 00:00:00 2001 From: luwenpeng Date: Mon, 2 Aug 2021 11:22:31 +0800 Subject: [PATCH] =?UTF-8?q?TSG-7248=20=E4=BF=AE=E6=94=B9Proxy=E5=86=85?= =?UTF-8?q?=E9=83=A8watchdog=E7=9A=84=E5=A4=84=E7=90=86=E9=80=BB=E8=BE=91?= =?UTF-8?q?=EF=BC=8C=E5=88=9B=E5=BB=BAworker=E7=BA=BF=E7=A8=8B=E6=97=B6?= =?UTF-8?q?=E4=BE=BF=E6=9B=B4=E6=96=B0=E6=97=B6=E9=97=B4=E6=88=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- platform/src/proxy.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/platform/src/proxy.cpp b/platform/src/proxy.cpp index 3764b65..acdd45d 100644 --- a/platform/src/proxy.cpp +++ b/platform/src/proxy.cpp @@ -341,6 +341,11 @@ int tfe_proxy_work_thread_run(struct tfe_proxy * proxy) for (i = 0; i < proxy->nr_work_threads; i++) { __thread_ctx = proxy->work_threads[i]; + + struct timespec now; + clock_gettime(CLOCK_MONOTONIC, &now); + ATOMIC_SET(&(__thread_ctx->lastime), now.tv_sec); + ret = pthread_create(&__thread_ctx->thr, NULL, tfe_work_thread, (void *) __thread_ctx); if (unlikely(ret < 0)) {