mirror of
https://github.com/Zygo/bees.git
synced 2025-05-17 21:35:45 +02:00
lockset: drop unused method wait_unlock
This function is not used and does not appear to be useful. Remove it. Signed-off-by: Zygo Blaxell <bees@furryterror.org>
This commit is contained in:
parent
8a68b5f20b
commit
116f15ace5
@ -61,7 +61,6 @@ namespace crucible {
|
|||||||
size_t size();
|
size_t size();
|
||||||
bool empty();
|
bool empty();
|
||||||
set_type copy();
|
set_type copy();
|
||||||
void wait_unlock(double interval);
|
|
||||||
|
|
||||||
void max_size(size_t max);
|
void max_size(size_t max);
|
||||||
|
|
||||||
@ -145,15 +144,6 @@ namespace crucible {
|
|||||||
THROW_CHECK1(invalid_argument, erase_count, erase_count == 1);
|
THROW_CHECK1(invalid_argument, erase_count, erase_count == 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
template <class T>
|
|
||||||
void
|
|
||||||
LockSet<T>::wait_unlock(double interval)
|
|
||||||
{
|
|
||||||
unique_lock<mutex> lock(m_mutex);
|
|
||||||
if (m_set.empty()) return;
|
|
||||||
m_condvar.wait_for(lock, chrono::duration<double>(interval));
|
|
||||||
}
|
|
||||||
|
|
||||||
template <class T>
|
template <class T>
|
||||||
size_t
|
size_t
|
||||||
LockSet<T>::size()
|
LockSet<T>::size()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user