From 08505499d1449f53449e119aefc71324376b348b Mon Sep 17 00:00:00 2001 From: shenxin <shenxin@basic.com> Date: 星期一, 23 八月 2021 19:40:14 +0800 Subject: [PATCH] 增加BHSubscribeNetTopics、BHQueryTopicAddress接口 修改CMakeLists.txt,增加相应文件到编译中。(需要安装protobuf) --- include/usgcommon/sem_util.h | 9 ++++++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff --git a/include/usgcommon/sem_util.h b/include/usgcommon/sem_util.h index 3ec010c..04934fe 100644 --- a/include/usgcommon/sem_util.h +++ b/include/usgcommon/sem_util.h @@ -1,5 +1,5 @@ -#ifndef PCSEM_H -#define PCSEM_H +#ifndef _SEM_UTIL_H +#define _SEM_UTIL_H #include "usg_common.h" #include "usg_typedef.h" @@ -14,9 +14,12 @@ int zero_nowait(int semId); int zero_timeout(const int semId, const struct timespec * timeout); int inc(int semId); + int set(int semId, int val); + void remove(int semid); - void set(int semId, int val); + + } -- Gitblit v1.8.0