mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-27 11:17:49 +02:00
exclude garlic thread
This commit is contained in:
parent
002ccdf2c7
commit
296b2d7372
4 changed files with 5 additions and 90 deletions
25
Garlic.h
25
Garlic.h
|
@ -113,31 +113,6 @@ namespace garlic
|
|||
std::mutex m_CreatedSessionsMutex;
|
||||
std::map<uint32_t, GarlicRoutingSession *> m_CreatedSessions; // msgID -> session
|
||||
};
|
||||
|
||||
class GarlicRouting
|
||||
{
|
||||
public:
|
||||
|
||||
GarlicRouting (): m_IsRunning (false), m_Thread (nullptr) {};
|
||||
~GarlicRouting () {};
|
||||
|
||||
void Start ();
|
||||
void Stop ();
|
||||
void PostI2NPMsg (I2NPMessage * msg);
|
||||
|
||||
private:
|
||||
|
||||
void Run ();
|
||||
void HandleGarlicMessage (I2NPMessage * msg);
|
||||
|
||||
private:
|
||||
|
||||
bool m_IsRunning;
|
||||
std::thread * m_Thread;
|
||||
i2p::util::Queue<I2NPMessage> m_Queue;
|
||||
};
|
||||
|
||||
extern GarlicRouting routing;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue