changed NEW to OBJ_CREATE
This commit was SVN r543.
Этот коммит содержится в:
родитель
8d08a67f45
Коммит
767d71aa86
@ -36,7 +36,7 @@ int lam_free_list_init_with(
|
||||
int num_elements_to_alloc,
|
||||
int max_elements_to_alloc,
|
||||
int num_elements_per_alloc,
|
||||
lam_allocator_t);
|
||||
lam_allocator_t*);
|
||||
|
||||
static inline lam_list_item_t *lam_free_list_get(lam_free_list_t * list, int *rc)
|
||||
{
|
||||
|
@ -301,7 +301,7 @@ static int lam_free_lists_mem_pool_init(lam_free_lists_t *flist,
|
||||
STATIC_INIT(flist->fl_pool, &shmem_pool_cls);
|
||||
} else {
|
||||
/* process private memory allocation */
|
||||
flist->fl_pool = NEW(lam_mem_pool_t, &mem_pool_cls);
|
||||
flist->fl_pool = OBJ_CREATE(lam_mem_pool_t, &mem_pool_cls);
|
||||
}
|
||||
|
||||
err = lam_mp_init_with(
|
||||
|
@ -27,7 +27,7 @@ void lam_mp_init(lam_mem_pool_t *pool)
|
||||
{
|
||||
SUPER_INIT(pool, mem_pool_cls.cls_parent);
|
||||
|
||||
pool->mp_private_alloc = NEW(lam_allocator_t, &allocator_cls);
|
||||
pool->mp_private_alloc = OBJ_CREATE(lam_allocator_t, &allocator_cls);
|
||||
lam_mutex_init(&(pool->mp_lock));
|
||||
pool->mp_dev_alloc = NULL;
|
||||
}
|
||||
@ -36,7 +36,7 @@ void lam_mp_shared_init(lam_mem_pool_t *pool)
|
||||
{
|
||||
SUPER_INIT(pool, shmem_pool_cls.cls_parent);
|
||||
|
||||
pool->mp_private_alloc = NEW(lam_allocator_t, &allocator_cls);
|
||||
pool->mp_private_alloc = OBJ_CREATE(lam_allocator_t, &allocator_cls);
|
||||
lam_mutex_init(&(pool->mp_lock));
|
||||
lam_alc_set_is_shared(pool->mp_private_alloc, 1);
|
||||
lam_alc_set_mem_prot(pool->mp_private_alloc, MMAP_SHARED_PROT);
|
||||
@ -276,7 +276,7 @@ void lam_fmp_init(lam_fixed_mpool_t *pool)
|
||||
{
|
||||
SUPER_INIT(pool, &lam_object_cls);
|
||||
|
||||
pool->fmp_private_alloc = NEW(lam_allocator_t, &allocator_cls);
|
||||
pool->fmp_private_alloc = OBJ_CREATE(lam_allocator_t, &allocator_cls);
|
||||
lam_alc_set_is_shared(pool->fmp_private_alloc, 1);
|
||||
lam_alc_set_mem_prot(pool->fmp_private_alloc, MMAP_SHARED_PROT);
|
||||
|
||||
|
Загрузка…
Ссылка в новой задаче
Block a user