mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	rtkit: use _gettid() instead of getpid() in fallback
This commit is contained in:
		
							parent
							
								
									9160a127b5
								
							
						
					
					
						commit
						a4b8bd6d52
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -592,7 +592,7 @@ static pid_t impl_gettid(struct impl *impl, pthread_t pt)
 | 
				
			||||||
	if ((thr = find_thread_by_pt(impl, pt)) != NULL)
 | 
						if ((thr = find_thread_by_pt(impl, pt)) != NULL)
 | 
				
			||||||
		pid = thr->pid;
 | 
							pid = thr->pid;
 | 
				
			||||||
	else
 | 
						else
 | 
				
			||||||
		pid = getpid();
 | 
							pid = _gettid();
 | 
				
			||||||
	pthread_mutex_unlock(&impl->lock);
 | 
						pthread_mutex_unlock(&impl->lock);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	return pid;
 | 
						return pid;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue