mirror of
				https://github.com/Zygo/bees.git
				synced 2025-11-03 19:50:34 +01: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:
		@@ -61,7 +61,6 @@ namespace crucible {
 | 
			
		||||
		size_t size();
 | 
			
		||||
		bool empty();
 | 
			
		||||
		set_type copy();
 | 
			
		||||
		void wait_unlock(double interval);
 | 
			
		||||
 | 
			
		||||
		void max_size(size_t max);
 | 
			
		||||
 | 
			
		||||
@@ -145,15 +144,6 @@ namespace crucible {
 | 
			
		||||
		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>
 | 
			
		||||
	size_t
 | 
			
		||||
	LockSet<T>::size()
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user