From e1e97f1f98baf82efcd5825d7c7a7b4b1b2f2e40 Mon Sep 17 00:00:00 2001 From: wangzhengquan <wangzhengquan85@126.com> Date: 星期一, 13 七月 2020 19:03:21 +0800 Subject: [PATCH] udpate --- queue/hashtable.h | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/queue/hashtable.h b/queue/hashtable.h index 73c1729..bbe2aa6 100755 --- a/queue/hashtable.h +++ b/queue/hashtable.h @@ -9,6 +9,10 @@ typedef struct hashtable_t { struct tailq_header_t* array[MAPSIZE]; + int mutex; + int wlock; + int cond; + size_t readcnt; } hashtable_t; @@ -20,4 +24,6 @@ void hashtable_printall(hashtable_t *hashtable); + +int hashtable_alloc_key(hashtable_t *hashtable); #endif -- Gitblit v1.8.0