mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-27 11:17:49 +02:00
fixed race condition
This commit is contained in:
parent
22773bd678
commit
f34680134a
4 changed files with 22 additions and 20 deletions
|
@ -48,6 +48,9 @@ namespace tunnel
|
|||
void TestTunnels ();
|
||||
void ProcessDeliveryStatus (I2NPMessage * msg);
|
||||
|
||||
bool IsDeleted () const { return m_IsDeleted; };
|
||||
void SetDeleted () { m_IsDeleted = true; }
|
||||
|
||||
private:
|
||||
|
||||
void CreateInboundTunnel ();
|
||||
|
@ -68,6 +71,7 @@ namespace tunnel
|
|||
mutable std::mutex m_OutboundTunnelsMutex;
|
||||
std::set<OutboundTunnel *, TunnelCreationTimeCmp> m_OutboundTunnels;
|
||||
std::map<uint32_t, std::pair<OutboundTunnel *, InboundTunnel *> > m_Tests;
|
||||
bool m_IsDeleted;
|
||||
|
||||
public:
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue