Skip to content

Commit

Permalink
shm: reduce delay between monitor daemon launch & HBs
Browse files Browse the repository at this point in the history
  • Loading branch information
rbx committed Apr 8, 2021
1 parent 9144258 commit 0976465
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fairmq/shmem/Manager.h
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,8 @@ class Manager
StartMonitor(fShmId);
}

fHeartbeatThread = std::thread(&Manager::SendHeartbeats, this);

{
std::stringstream ss;
boost::interprocess::scoped_lock<boost::interprocess::named_mutex> lock(fShmMtx);
Expand Down Expand Up @@ -200,8 +202,6 @@ class Manager
fShmMsgCounters = fManagementSegment.find_or_construct<Uint16MsgCounterHashMap>(unique_instance)(fShmVoidAlloc);
#endif
}

fHeartbeatThread = std::thread(&Manager::SendHeartbeats, this);
}

Manager() = delete;
Expand Down

0 comments on commit 0976465

Please sign in to comment.