mirror of
				https://github.com/Zygo/bees.git
				synced 2025-11-04 04:00:36 +01:00 
			
		
		
		
	task: increase saved thread name length to 64
24 bytes seems a little low. 64 is a rounder (and more square) number. Signed-off-by: Zygo Blaxell <bees@furryterror.org>
This commit is contained in:
		@@ -300,7 +300,7 @@ namespace crucible {
 | 
				
			|||||||
		swap(this_task, tl_current_task);
 | 
							swap(this_task, tl_current_task);
 | 
				
			||||||
		lock.unlock();
 | 
							lock.unlock();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		char buf[24] = { 0 };
 | 
							char buf[64] = { 0 };
 | 
				
			||||||
		DIE_IF_MINUS_ERRNO(pthread_getname_np(pthread_self(), buf, sizeof(buf)));
 | 
							DIE_IF_MINUS_ERRNO(pthread_getname_np(pthread_self(), buf, sizeof(buf)));
 | 
				
			||||||
		DIE_IF_MINUS_ERRNO(pthread_setname_np(pthread_self(), m_title.c_str()));
 | 
							DIE_IF_MINUS_ERRNO(pthread_setname_np(pthread_self(), m_title.c_str()));
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user