pool: compute pool::empty correctly...

This commit is contained in:
Danny Robson 2019-01-21 16:39:32 +11:00
parent 9c62ab5e7b
commit d73332034f

View File

@ -143,8 +143,7 @@ namespace cruft {
auto capacity (void) const { return m_capacity; } auto capacity (void) const { return m_capacity; }
auto size (void) const { return m_size.load (); } auto size (void) const { return m_size.load (); }
bool empty (void) const { return size () == 0; }
bool empty (void) const { return m_size == m_capacity; }
// Indexing // Indexing