mirror of
				https://github.com/Zygo/bees.git
				synced 2025-11-04 04:00:36 +01:00 
			
		
		
		
	task: add more Doxygen comments for PairLock
I need to remind myself why it's there, and not just std::lock. Signed-off-by: Zygo Blaxell <bees@furryterror.org>
This commit is contained in:
		@@ -30,7 +30,8 @@ namespace crucible {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
	static thread_local TaskStatePtr tl_current_task;
 | 
						static thread_local TaskStatePtr tl_current_task;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	/// because we don't want to bump -std=c++-17 just to get scoped_lock
 | 
						/// because we don't want to bump -std=c++-17 just to get scoped_lock.
 | 
				
			||||||
 | 
						/// Also we don't want to self-deadlock if both mutexes are the same mutex.
 | 
				
			||||||
	class PairLock {
 | 
						class PairLock {
 | 
				
			||||||
		unique_lock<mutex>	m_lock1, m_lock2;
 | 
							unique_lock<mutex>	m_lock1, m_lock2;
 | 
				
			||||||
	public:
 | 
						public:
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user