wangzhengquan
2020-07-14 8b4ddf10e71e1c8fabd33c72b282f7da65ff682f
queue/hashtable.h
@@ -2,7 +2,7 @@
#define __HASHTABLE_H__
#include <sys/queue.h>
//#include "queue.h"
#include <set>
#define MAPSIZE 100
@@ -15,6 +15,7 @@
 size_t readcnt;
} hashtable_t;
typedef void (*hashtable_foreach_cb)(int key, void *value);
void hashtable_init(hashtable_t *hashtable);
void *hashtable_get(hashtable_t *hashtable, int key);
@@ -23,7 +24,11 @@
void hashtable_removeall(hashtable_t *hashtable);
void hashtable_foreach(hashtable_t *hashtable, hashtable_foreach_cb cb);
void hashtable_printall(hashtable_t *hashtable);
int hashtable_alloc_key(hashtable_t *hashtable);
std::set<int> * hashtable_keyset(hashtable_t *hashtable) ;
#endif