Skip to content

Add some interface for sessions#1942

Draft
an-tao wants to merge 1 commit intomasterfrom
sessions
Draft

Add some interface for sessions#1942
an-tao wants to merge 1 commit intomasterfrom
sessions

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.

2 participants