fast_mblock_init_ex1: unify obj name
parent
1e9df48fec
commit
3e0f1eb1fc
|
|
@ -34,7 +34,7 @@ int common_blocked_queue_init_ex(struct common_blocked_queue *queue,
|
|||
return result;
|
||||
}
|
||||
|
||||
if ((result=fast_mblock_init_ex1(&queue->mblock, "queue_node",
|
||||
if ((result=fast_mblock_init_ex1(&queue->mblock, "queue-node",
|
||||
sizeof(struct common_blocked_node),
|
||||
alloc_elements_once, alloc_elements_limit,
|
||||
NULL, NULL, false)) != 0)
|
||||
|
|
|
|||
|
|
@ -47,14 +47,14 @@ int conn_pool_init_ex1(ConnectionPool *cp, int connect_timeout,
|
|||
cp->validate_callback.args = validate_args;
|
||||
|
||||
init_capacity = htable_init_capacity > 0 ? htable_init_capacity : 256;
|
||||
if ((result=fast_mblock_init_ex1(&cp->manager_allocator, "cpool_manager",
|
||||
if ((result=fast_mblock_init_ex1(&cp->manager_allocator, "cpool-manager",
|
||||
sizeof(ConnectionManager), init_capacity,
|
||||
alloc_elements_limit, NULL, NULL, false)) != 0)
|
||||
{
|
||||
return result;
|
||||
}
|
||||
|
||||
if ((result=fast_mblock_init_ex1(&cp->node_allocator, "cpool_node",
|
||||
if ((result=fast_mblock_init_ex1(&cp->node_allocator, "cpool-node",
|
||||
sizeof(ConnectionNode) + sizeof(ConnectionInfo) +
|
||||
extra_data_size, init_capacity, alloc_elements_limit,
|
||||
NULL, NULL, true)) != 0)
|
||||
|
|
|
|||
|
|
@ -716,7 +716,7 @@ int sched_start_ex(ScheduleArray *pScheduleArray, pthread_t *ptid,
|
|||
if (timer_slot_count > 0)
|
||||
{
|
||||
if ((result=fast_mblock_init_ex1(&pContext->delay_task_allocator,
|
||||
"sched_delay_task", sizeof(FastDelayTask),
|
||||
"sched-delay-task", sizeof(FastDelayTask),
|
||||
mblock_alloc_once, 0, NULL, NULL, true)) != 0)
|
||||
{
|
||||
free(pContext);
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ int shared_buffer_init_ex(SharedBufferContext *context,
|
|||
int result;
|
||||
|
||||
context->buffer_init_capacity = buffer_init_capacity;
|
||||
if ((result=fast_mblock_init_ex1(&context->allocator, "shared_buffer",
|
||||
if ((result=fast_mblock_init_ex1(&context->allocator, "shared-buffer",
|
||||
sizeof(SharedBuffer), alloc_elements_once,
|
||||
alloc_elements_limit, shared_buffer_alloc_init,
|
||||
context, need_lock)) != 0)
|
||||
|
|
|
|||
Loading…
Reference in New Issue