mirror of
				https://github.com/Zygo/bees.git
				synced 2025-11-03 19:50:34 +01:00 
			
		
		
		
	process: replace crucible::gettid() with a weak symbol
Since we're now using weak symbols for dodgy libc functions, we might as well do it for gettid() too. Use the ::gettid() global namespace and let libc override it. Signed-off-by: Zygo Blaxell <bees@furryterror.org>
This commit is contained in:
		@@ -91,9 +91,9 @@ BeesNote::~BeesNote()
 | 
			
		||||
	tl_next = m_prev;
 | 
			
		||||
	unique_lock<mutex> lock(s_mutex);
 | 
			
		||||
	if (tl_next) {
 | 
			
		||||
		s_status[crucible::gettid()] = tl_next;
 | 
			
		||||
		s_status[gettid()] = tl_next;
 | 
			
		||||
	} else {
 | 
			
		||||
		s_status.erase(crucible::gettid());
 | 
			
		||||
		s_status.erase(gettid());
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@@ -104,7 +104,7 @@ BeesNote::BeesNote(function<void(ostream &os)> f) :
 | 
			
		||||
	m_prev = tl_next;
 | 
			
		||||
	tl_next = this;
 | 
			
		||||
	unique_lock<mutex> lock(s_mutex);
 | 
			
		||||
	s_status[crucible::gettid()] = tl_next;
 | 
			
		||||
	s_status[gettid()] = tl_next;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user