From 28f9f739fad7944f64f7df2b8af046f57d50eb8b Mon Sep 17 00:00:00 2001 From: wangzhengquan <wangzhengquan85@126.com> Date: 星期二, 22 十二月 2020 16:01:34 +0800 Subject: [PATCH] three 信号量 --- src/queue/hashtable.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/src/queue/hashtable.c b/src/queue/hashtable.c index 03b64b6..243067b 100755 --- a/src/queue/hashtable.c +++ b/src/queue/hashtable.c @@ -36,6 +36,12 @@ } +void hashtable_destroy(hashtable_t *hashtable) { + SemUtil::remove( hashtable->mutex); + SemUtil::remove( hashtable->wlock); + SemUtil::remove( hashtable->cond); +} + static inline void *_hashtable_get(hashtable_t *hashtable, int key) { -- Gitblit v1.8.0