The concept involves pre-allocating a pool of memory and reserving it until it is actually needed.
其思想是预分配一个内存池,并保留到真正需要的时候。
Mempool_alloc is for allocating objects; if the mempool allocator fails to provide memory, then the pre-allocation pool will be used.
mempool_alloc用来分配对象;如果内存池分配器无法提供内存,那么就可以用预分配的池。
Mempool_alloc is for allocating objects; if the mempool allocator fails to provide memory, then the pre-allocation pool will be used.
mempool_alloc用来分配对象;如果内存池分配器无法提供内存,那么就可以用预分配的池。
应用推荐