Skip to content

Commit

Permalink
Fixed issue with multiple Node discovery per process
Browse files Browse the repository at this point in the history
Signed-off-by: Amal Dev Haridevan <[email protected]>
  • Loading branch information
AmalDevHaridevan committed Sep 13, 2024
1 parent b14f3f9 commit 17baf22
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/NodeShared.cc
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,8 @@ NodeShared *NodeShared::Instance()

// Get current process ID.
auto pid = getProcessId();
// Get current thread ID, so we can create multiple NodeShared per Process, per thread
// Get current thread ID, so we can create multiple NodeShared per Process
// , per thread
auto tid = std::this_thread::get_id();
// Create a unique id using both pid and tid
std::stringstream ss;
Expand Down

0 comments on commit 17baf22

Please sign in to comment.