mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	thread-win32: Implement pa_thread_free_nojoin()
This fixes a build error with mingw32: pulsecore/.libs/libpulsecommon_4.99_la-lock-autospawn.o: In function `unref': /home/abuild/rpmbuild/BUILD/pulseaudio-4.99.2/src/pulsecore/lock-autospawn.c:123: undefined reference to `pa_thread_free_nojoin' collect2: error: ld returned 1 exit status pa_thread_free_nojoin() was initially only implemented for the pthread based pa_thread backend, because it was incorrectly assumed that autospawning (the only user of pa_thread_free_nojoin()) is not used on Windows. Reported-By: Michael DePaulo <mikedep333@gmail.com>
This commit is contained in:
		
							parent
							
								
									c95b4c22ca
								
							
						
					
					
						commit
						a64eead876
					
				
					 1 changed files with 7 additions and 0 deletions
				
			
		| 
						 | 
					@ -109,6 +109,13 @@ void pa_thread_free(pa_thread *t) {
 | 
				
			||||||
    pa_xfree(t);
 | 
					    pa_xfree(t);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					void pa_thread_free_nojoin(pa_thread *t) {
 | 
				
			||||||
 | 
					    pa_assert(t);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    CloseHandle(t->thread);
 | 
				
			||||||
 | 
					    pa_xfree(t);
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
int pa_thread_join(pa_thread *t) {
 | 
					int pa_thread_join(pa_thread *t) {
 | 
				
			||||||
    assert(t);
 | 
					    assert(t);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue