shm_util/shm_util.cpp | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/shm/hashtable.h | ●●●●● 补丁 | 查看 | 原始文档 | 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); * }); *