mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	Make sure we do not use pthread_yield() on platforms that do not have them.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1045 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
		
							parent
							
								
									3b2835843e
								
							
						
					
					
						commit
						1342999b51
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -148,7 +148,7 @@ int main(int argc, char *argv[]) {
 | 
			
		|||
 | 
			
		||||
        tv = now;
 | 
			
		||||
        while (pa_timeval_diff(pa_gettimeofday(&now), &tv) < 1000)
 | 
			
		||||
#ifdef HAVE_PTHREAD
 | 
			
		||||
#ifdef HAVE_PTHREAD_YIELD
 | 
			
		||||
            pthread_yield();
 | 
			
		||||
#elif defined(OS_IS_WIN32)
 | 
			
		||||
            Sleep(0);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue