mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-15 17:02:53 +08:00
pool init
This commit is contained in:
parent
d132f2c4c5
commit
eff3d676bc
@ -30,8 +30,7 @@ void __impl_pikaFree(void* ptrm, size_t size) {
|
|||||||
#if use_dynamic_pool
|
#if use_dynamic_pool
|
||||||
Pool pikaPool;
|
Pool pikaPool;
|
||||||
void* __impl_pikaMalloc(size_t size) {
|
void* __impl_pikaMalloc(size_t size) {
|
||||||
void* mem = pool_malloc(&pikaPool, size);
|
return pool_malloc(&pikaPool, size);
|
||||||
return mem;
|
|
||||||
}
|
}
|
||||||
void __impl_pikaFree(void* ptrm, size_t size) {
|
void __impl_pikaFree(void* ptrm, size_t size) {
|
||||||
pool_free(&pikaPool, ptrm, size);
|
pool_free(&pikaPool, ptrm, size);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user