mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
Revert "Merge pull request #1703 from simonvetter/simon/memory-and-multithreading-fixes"
This reverts commit67863cfcf9
, reversing changes made to4c5ec68ff1
. That change completly bloking transports thread on windows. Signed-off-by: R4SAS <r4sas@i2pmail.org>
This commit is contained in:
parent
56ec8fe95b
commit
c6e4758187
5 changed files with 17 additions and 58 deletions
|
@ -68,7 +68,7 @@ namespace tunnel
|
|||
public:
|
||||
|
||||
Tunnel (std::shared_ptr<const TunnelConfig> config);
|
||||
virtual ~Tunnel ();
|
||||
~Tunnel ();
|
||||
|
||||
void Build (uint32_t replyMsgID, std::shared_ptr<OutboundTunnel> outboundTunnel = nullptr);
|
||||
|
||||
|
@ -254,18 +254,12 @@ namespace tunnel
|
|||
bool m_IsRunning;
|
||||
std::thread * m_Thread;
|
||||
std::map<uint32_t, std::shared_ptr<InboundTunnel> > m_PendingInboundTunnels; // by replyMsgID
|
||||
mutable std::mutex m_PendingInboundTunnelsMutex;
|
||||
std::map<uint32_t, std::shared_ptr<OutboundTunnel> > m_PendingOutboundTunnels; // by replyMsgID
|
||||
mutable std::mutex m_PendingOutboundTunnelsMutex;
|
||||
std::list<std::shared_ptr<InboundTunnel> > m_InboundTunnels;
|
||||
mutable std::recursive_mutex m_InboundTunnelsMutex;
|
||||
std::list<std::shared_ptr<OutboundTunnel> > m_OutboundTunnels;
|
||||
mutable std::recursive_mutex m_OutboundTunnelsMutex;
|
||||
std::list<std::shared_ptr<TransitTunnel> > m_TransitTunnels;
|
||||
mutable std::mutex m_TransitTunnelsMutex;
|
||||
std::unordered_map<uint32_t, std::shared_ptr<TunnelBase> > m_Tunnels; // tunnelID->tunnel known by this id
|
||||
mutable std::recursive_mutex m_TunnelsMutex;
|
||||
mutable std::mutex m_PoolsMutex;
|
||||
std::mutex m_PoolsMutex;
|
||||
std::list<std::shared_ptr<TunnelPool>> m_Pools;
|
||||
std::shared_ptr<TunnelPool> m_ExploratoryPool;
|
||||
i2p::util::Queue<std::shared_ptr<I2NPMessage> > m_Queue;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue