wangzhengquan
2020-07-29 4f8fd73876be6adc87b2e24440d1174276c88ff6
export alloc_key
2个文件已修改
8 ■■■■■ 已修改文件
src/queue/include/shm_mm.h 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/queue/shm_mm.c 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/queue/include/shm_mm.h
@@ -18,6 +18,8 @@
 */
void shm_destroy();
int shm_alloc_key();
#ifdef __cplusplus
}
src/queue/shm_mm.c
@@ -10,4 +10,10 @@
    mem_pool_destroy();
}
int shm_alloc_key() {
    hashtable_t *hashtable = mm_get_hashtable();
    return  hashtable_alloc_key(hashtable);
}