319
319
/************************************************************************
320
320
Allocates memory from a pool. NOTE: This low-level function should only be
326
326
/* out, own: allocated memory buffer */
328
328
space usage, the size should be a power of 2
332
330
mem_pool_t* pool) /* in: memory pool */
340
336
n = ut_2_log(ut_max(size + MEM_AREA_EXTRA_SIZE, MEM_AREA_MIN_SIZE));
342
338
mutex_enter(&(pool->mutex));