mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
show tunnels queue size
This commit is contained in:
parent
cd8e9e59fa
commit
14f448f4c7
3 changed files with 10 additions and 1 deletions
8
Queue.h
8
Queue.h
|
@ -76,7 +76,13 @@ namespace util
|
|||
std::unique_lock<std::mutex> l(m_QueueMutex);
|
||||
return m_Queue.empty ();
|
||||
}
|
||||
|
||||
|
||||
int GetSize ()
|
||||
{
|
||||
std::unique_lock<std::mutex> l(m_QueueMutex);
|
||||
return m_Queue.size ();
|
||||
}
|
||||
|
||||
void WakeUp () { m_NonEmpty.notify_all (); };
|
||||
|
||||
Element * Get ()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue