rename xxx_create() / xxx_destory() -> xxx_new() / xxx_free()

This commit is contained in:
luwenpeng
2024-03-08 14:20:36 +08:00
parent 9d562ffee6
commit c945931620
56 changed files with 330 additions and 330 deletions

View File

@@ -7,7 +7,7 @@ struct session_pool
struct session *sess;
};
struct session_pool *session_pool_create(uint64_t count)
struct session_pool *session_pool_new(uint64_t count)
{
struct session_pool *pool = (struct session_pool *)calloc(1, sizeof(struct session_pool) + count * sizeof(struct session));
if (pool == NULL)
@@ -27,7 +27,7 @@ struct session_pool *session_pool_create(uint64_t count)
return pool;
}
void session_pool_destroy(struct session_pool *pool)
void session_pool_free(struct session_pool *pool)
{
if (pool)
{