From 00dba6082e245d917cb7d6eed3c627211ff41cd7 Mon Sep 17 00:00:00 2001 From: wangzhengquan <wangzhengquan85@126.com> Date: 星期五, 25 九月 2020 15:53:21 +0800 Subject: [PATCH] update --- src/util/sem_util.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/util/sem_util.c b/src/util/sem_util.c index c73d1e1..bc8c4f4 100644 --- a/src/util/sem_util.c +++ b/src/util/sem_util.c @@ -4,6 +4,7 @@ static Logger logger = LoggerFactory::getLogger(); int SemUtil::get(key_t key, unsigned int value) { +// printf("==================SemUtil::get===============================\n"); int semid, perms; perms = S_IRUSR | S_IWUSR; @@ -81,7 +82,7 @@ while (semop(semId, &sops, 1) == -1) if (errno != EINTR) { - // err_msg(errno, "SemUtil::dec"); + err_msg(errno, "SemUtil::dec"); return -1; } @@ -97,7 +98,7 @@ while (semop(semId, &sops, 1) == -1) if (errno != EINTR) { - // err_msg(errno, "SemUtil::dec_nowait"); + err_msg(errno, "SemUtil::dec_nowait"); return -1; } @@ -113,7 +114,7 @@ while (semtimedop(semId, &sops, 1, timeout) == -1) if (errno != EINTR) { - //err_msg(errno, "SemUtil::dec_timeout"); + // err_msg(errno, "SemUtil::dec_timeout"); return -1; } @@ -122,7 +123,6 @@ /* Release semaphore - increment it by 1 */ int SemUtil::inc(int semId) { -logger.debug("%d: SemUtil::inc\n", semId); struct sembuf sops; sops.sem_num = 0; -- Gitblit v1.8.0