Fu Juntang
2021-09-04 658e74cc759db6fb6d51d5287749cff1cfd2a0a2
src/shm/hashtable.h
@@ -5,7 +5,7 @@
#include <functional>
#include <set>
#define MAPSIZE 1024
#define MAPSIZE 4096
// 创建Queue数量的上限
#define QUEUE_COUNT_LIMIT 300
@@ -33,15 +33,11 @@
void *hashtable_remove(hashtable_t *hashtable, int key);
void hashtable_removeall(hashtable_t *hashtable);
int hashtable_lock(hashtable_t *hashtable);
int hashtable_unlock(hashtable_t *hashtable);
int hashtable_get_queue_count(hashtable_t *hashtable) ;
/** 
 * 遍历hash_table
 * @demo 
 * hashtable_foreach(&hashtable, [&](int key, void * value){
 * hashtable_foreach(hashtable, [&](int key, void * value){
 *   printf("%d, %p\n", key, value);
 * });
 *