From c479ef57baaaa28964fc3ec8d80ff99dffa7d49f Mon Sep 17 00:00:00 2001 From: fujuntang <fujuntang@smartai.com> Date: 星期三, 10 十一月 2021 09:49:29 +0800 Subject: [PATCH] Fix the system hang issue when the app is killed contantly. --- src/msg_trigger/msg_mgr.h | 11 ++++------- 1 files changed, 4 insertions(+), 7 deletions(-) diff --git a/src/msg_trigger/msg_mgr.h b/src/msg_trigger/msg_mgr.h index 809808b..686d47c 100644 --- a/src/msg_trigger/msg_mgr.h +++ b/src/msg_trigger/msg_mgr.h @@ -1,9 +1,7 @@ #ifndef __MSG_MGR_DEF_ #define __MSG_MGR_DEF_ -#ifdef __cplusplus -extern "C" { -#endif +#include "shm_allocator.h" #define SEM_TYPE_ID 0 #define RSV_TYPE_ID 1 @@ -37,16 +35,15 @@ } Msg_info; -#ifdef __cplusplus -} -#endif - int msg_init(void); void msg_distrib(int msg_id, Msg_info *message); int get_msg_info(int msg_id, Msg_info *message); void *sem_msg_handler(void *skptr); void msg_info_set(int index, Msg_info msg_obj); +typedef std::set<int, std::less<int>, SHM_STL_Allocator<int> > recvbuf_val; +typedef std::map<int, recvbuf_val *, std::less<int>, SHM_STL_Allocator<std::pair<int, recvbuf_val *> > > recvbuf_data; + #endif //end of file -- Gitblit v1.8.0