wangzhengquan
2021-02-08 1388e881fe407254bd9a6df4a3b4451291969079
update
2个文件已修改
7 ■■■■ 已修改文件
shm_util/shm_util.cpp 5 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/shm/hashtable.h 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
shm_util/shm_util.cpp
@@ -1,3 +1,6 @@
/**
 * 查看与移出key的工具
 */
#include <assert.h>
#include "net_mod_server_socket_wrapper.h"
#include "net_mod_socket_wrapper.h"
@@ -10,7 +13,7 @@
static void usage(const char *name) {
    printf("Usage: %s {list}\n", name);
    printf("Usage: %s {list | rm ...}\n", name);
}
src/shm/hashtable.h
@@ -41,7 +41,7 @@
/** 
 * 遍历hash_table
 * @demo 
 * hashtable_foreach(&hashtable, [&](int key, void * value){
 * hashtable_foreach(hashtable, [&](int key, void * value){
 *    printf("%d, %p\n", key, value);
 * });
 *