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
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion plugins/bnet_plugin/bnet_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ namespace eosio {


int next_session_id()const {
static int session_count = 0;
static std::atomic<int> session_count(0);
return ++session_count;
}

Expand Down