Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add some interface for sessions #1942

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

Add some interface for sessions #1942

wants to merge 1 commit into from

Conversation

an-tao
Copy link
Member

@an-tao an-tao commented Feb 2, 2024

No description provided.

@Mis1eader-dev
Copy link
Member

This PR allows for inserting a session programmatically, and retrieving a list of all sessions alive in memory, is that correct?
If those two were intended, it looks good to me

* */
std::vector<T2> getAllValues()
{
std::vector<T2> ret;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A reserve here would be beneficial, after the lock to make sure the map size is locked in place as well

@an-tao an-tao marked this pull request as draft February 9, 2024 07:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants