mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-07 06:09:42 +00:00
const GetSize()
This commit is contained in:
@@ -84,7 +84,7 @@ namespace util
|
|||||||
return m_Queue.empty ();
|
return m_Queue.empty ();
|
||||||
}
|
}
|
||||||
|
|
||||||
int GetSize ()
|
int GetSize () const
|
||||||
{
|
{
|
||||||
std::unique_lock<std::mutex> l(m_QueueMutex);
|
std::unique_lock<std::mutex> l(m_QueueMutex);
|
||||||
return m_Queue.size ();
|
return m_Queue.size ();
|
||||||
@@ -134,7 +134,7 @@ namespace util
|
|||||||
private:
|
private:
|
||||||
|
|
||||||
std::list<Element> m_Queue;
|
std::list<Element> m_Queue;
|
||||||
std::mutex m_QueueMutex;
|
mutable std::mutex m_QueueMutex;
|
||||||
std::condition_variable m_NonEmpty;
|
std::condition_variable m_NonEmpty;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user