mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-07 06:09:42 +00:00
eliminate local destination mutex
This commit is contained in:
@@ -64,8 +64,8 @@ namespace tunnel
|
||||
TunnelPool (int numInboundHops, int numOutboundHops, int numInboundTunnels, int numOutboundTunnels);
|
||||
~TunnelPool ();
|
||||
|
||||
std::shared_ptr<i2p::garlic::GarlicDestination> GetLocalDestination () const;
|
||||
void SetLocalDestination (std::shared_ptr<i2p::garlic::GarlicDestination> destination);
|
||||
std::shared_ptr<i2p::garlic::GarlicDestination> GetLocalDestination () const { return m_LocalDestination; };
|
||||
void SetLocalDestination (std::shared_ptr<i2p::garlic::GarlicDestination> destination) { m_LocalDestination = destination; };
|
||||
void SetExplicitPeers (std::shared_ptr<std::vector<i2p::data::IdentHash> > explicitPeers);
|
||||
|
||||
void CreateTunnels ();
|
||||
@@ -126,7 +126,6 @@ namespace tunnel
|
||||
|
||||
private:
|
||||
|
||||
mutable std::mutex m_LocalDestinationMutex;
|
||||
std::shared_ptr<i2p::garlic::GarlicDestination> m_LocalDestination;
|
||||
int m_NumInboundHops, m_NumOutboundHops, m_NumInboundTunnels, m_NumOutboundTunnels;
|
||||
mutable std::mutex m_ExplicitPeersMutex;
|
||||
|
||||
Reference in New Issue
Block a user