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.

---
 include/usgcommon/sem_util.h |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/include/usgcommon/sem_util.h b/include/usgcommon/sem_util.h
index 04934fe..6633541 100644
--- a/include/usgcommon/sem_util.h
+++ b/include/usgcommon/sem_util.h
@@ -9,18 +9,18 @@
 	int get(key_t key, unsigned int value);
 	int dec(int semId);
 	int dec_nowait(int semId);
-	int dec_timeout(const int semId, const struct timespec * timeout);
+	int dec_timeout(int semId, struct timespec * timeout);
+    int dec_uni(int semId);
 	int zero(int semId);
 	int zero_nowait(int semId);
-	int zero_timeout(const int semId, const struct timespec * timeout);
+	int zero_timeout(int semId, struct timespec * timeout);
 	int inc(int semId);
 	int set(int semId, int val);
 
 	void remove(int semid);
 
-
-	
-
 }
 
+#define SEM_USG_WT_TIMEOUT  60
+
 #endif

--
Gitblit v1.8.0