This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
stellar-stellar/src/session/session_pool.h

24 lines
475 B
C
Raw Normal View History

2023-12-11 16:27:39 +08:00
#ifndef _SESSION_POOL_H
#define _SESSION_POOL_H
2024-04-21 11:30:41 +08:00
#ifdef __cplusplus
2023-12-11 16:27:39 +08:00
extern "C"
{
#endif
#include "session_priv.h"
2023-12-11 16:27:39 +08:00
struct session_pool;
struct session_pool *session_pool_new(uint64_t count);
void session_pool_free(struct session_pool *pool);
2023-12-11 16:27:39 +08:00
struct session *session_pool_pop(struct session_pool *pool);
void session_pool_push(struct session_pool *pool, struct session *sess);
2023-12-11 16:35:26 +08:00
uint64_t session_pool_get_count(struct session_pool *pool);
2023-12-11 16:27:39 +08:00
2024-04-21 11:30:41 +08:00
#ifdef __cplusplus
2023-12-11 16:27:39 +08:00
}
#endif
#endif