mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
eliminate local destination mutex
This commit is contained in:
parent
67863cfcf9
commit
56ec8fe95b
2 changed files with 2 additions and 20 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue