mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 13:50:03 +00:00 
			
		
		
		
	Use pthread_set_name_np() on OpenBSD.
This commit is contained in:
		
							parent
							
								
									d0c1794853
								
							
						
					
					
						commit
						dad3655a6d
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		|  | @ -7,7 +7,7 @@ | |||
| 
 | ||||
| #ifdef __APPLE__ | ||||
| #include <mach/mach.h> | ||||
| #elif defined BSD4_4 | ||||
| #elif defined(BSD4_4) || defined(__OpenBSD__) | ||||
| #include <pthread_np.h> | ||||
| #endif | ||||
| 
 | ||||
|  | @ -123,6 +123,8 @@ void SetCurrentThreadName(const char* szThreadName) | |||
| { | ||||
| #ifdef __APPLE__ | ||||
|     pthread_setname_np(szThreadName); | ||||
| #elif defined(__OpenBSD__) | ||||
|     pthread_set_name_np(pthread_self(), szThreadName); | ||||
| #else | ||||
|     pthread_setname_np(pthread_self(), szThreadName); | ||||
| #endif | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue