From d69e2a2ed12d639cca99a4718250aacd6579987c Mon Sep 17 00:00:00 2001 From: fujuntang <fujuntang@smartai.com> Date: 星期日, 10 十月 2021 13:33:50 +0800 Subject: [PATCH] Add the deadlock detect feature. --- src/bus_proxy_start.cpp | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/src/bus_proxy_start.cpp b/src/bus_proxy_start.cpp index e2e4955..c5eaaf5 100644 --- a/src/bus_proxy_start.cpp +++ b/src/bus_proxy_start.cpp @@ -10,6 +10,7 @@ #include <errno.h> #include <getopt.h> #include <stdlib.h> +#include "msg_mgr.h" using namespace std; @@ -148,6 +149,10 @@ } } +#if defined(MSG_HANDLER) + msg_init(); +#endif + if (gShm_size == -1) { gShm_size = SHM_RES_SIZE; } @@ -166,7 +171,9 @@ if (gBusServer_stat >= 0) { pthread_create(&tids[1], NULL, svr_start, (void *)&gPort); - pthread_create(&tids[0], NULL, check_start, NULL); + pthread_create(&tids[2], NULL, check_start, NULL); + + //pthread_create(&tids[3], NULL, sem_msg_handler, NULL); } for (i = 0; i< TOTAL_THREADS; i++) { -- Gitblit v1.8.0