From 17d504557632ccc6b9b1195b1f0f6c3ff2359ef6 Mon Sep 17 00:00:00 2001
From: wangzhengquan <wangzhengquan85@126.com>
Date: 星期二, 28 七月 2020 17:40:12 +0800
Subject: [PATCH] hashtable

---
 src/queue/hashtable.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/queue/hashtable.c b/src/queue/hashtable.c
index 86001ef..84d0964 100755
--- a/src/queue/hashtable.c
+++ b/src/queue/hashtable.c
@@ -231,7 +231,7 @@
 
 
 
-static inline void _hashtable_foreach(hashtable_t *hashtable, std::function<void(int, void *)> cb) {
+static inline void _hashtable_foreach(hashtable_t *hashtable, std::function<void(int, void *)>  cb) {
   tailq_entry_t *item;
   for (int i = 0; i < MAPSIZE; i++) {
     tailq_header_t *my_tailq_head = hashtable->array[i] ;
@@ -247,7 +247,7 @@
 }
 
 
-void hashtable_foreach(hashtable_t *hashtable, hashtable_foreach_cb cb) {
+void hashtable_foreach(hashtable_t *hashtable,  std::function<void(int, void *)>  cb) {
    SemUtil::dec(hashtable->mutex);
    hashtable->readcnt++;
    if (hashtable->readcnt == 1) {

--
Gitblit v1.8.0