Add session table & session

This commit is contained in:
luwenpeng
2023-12-11 16:35:26 +08:00
parent 015b4e7695
commit 006315fb7c
12 changed files with 1024 additions and 20 deletions

View File

@@ -6,16 +6,15 @@ extern "C"
{
#endif
#include <stdint.h>
#include "session.h"
struct session_pool;
struct session_pool *session_pool_create(uint64_t count);
void session_pool_destroy(struct session_pool *pool);
struct session *session_pool_pop(struct session_pool *pool);
void session_pool_push(struct session_pool *pool, struct session *sess);
struct session *session_pool_alloc(struct session_pool *pool);
void session_pool_free(struct session_pool *pool, struct session *sess);
uint64_t session_pool_get_count(struct session_pool *pool);
#ifdef __cpluscplus
}