src/private/PZGHeartbeatThreadState.cpp
uint64 PZGHeartbeatThreadState :: GetEstimatedLatencyToPeer(const ZGPeerID & peerID) const
{
   MutexGuard mg(_mainThreadLatenciesLock);
   return _mainThreadLatencies.GetWithDefault(peerID, MUSCLE_TIME_NEVER);
}
// This method may be called by the main thread!  Hence the MutexGuard
This method may be called by the main thread.
This method may be called by the main thread .
uint64 PZGHeartbeatThreadState :: GetEstimatedLatencyToPeer(const ZGPeerID & peerID) const
{
   MutexGuard mg(_mainThreadLatenciesLock);
   return _mainThreadLatencies.GetWithDefault(peerID, MUSCLE_TIME_NEVER);
}
uint64 PZGHeartbeatThreadState :: GetEstimatedLatencyToPeer ( const ZGPeerID & peerID ) const { MutexGuard mg ( _mainThreadLatenciesLock ) ; return _mainThreadLatencies . GetWithDefault ( peerID , MUSCLE_TIME_NEVER ) ; }
This method may be called by the main thread!
This method may be called by the main thread!