wangzhengquan
2020-07-30 614cfd0c968d7b156932d85a5b375ace272a6775
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include "shm_mm.h"
#include "mem_pool.h"
#include "hashtable.h"
 
void shm_init(int size) {
    mem_pool_init(size);
}
 
void shm_destroy() {
    mem_pool_destroy();
}
 
int shm_alloc_key() {
    hashtable_t *hashtable = mm_get_hashtable();
    return  hashtable_alloc_key(hashtable);
}