Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

make next_session_id thread safe #6151

Merged
merged 1 commit into from
Oct 26, 2018

Conversation

fingera
Copy link
Contributor

@fingera fingera commented Oct 26, 2018

Make next_session_id thread safe

next_session_id called from session constructor

Main thread:

auto s = std::make_shared<session>( *_ioc, shared_from_this() );

auto s = std::make_shared<session>( ioc, my );

Work thread(on_accept):

newsession = std::make_shared<session>( move( _socket ), _net_plugin );

@wanderingbort wanderingbort merged commit ac428c3 into EOSIO:develop Oct 26, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants