mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	thread-loop: small cleanup
Use named fields for the event, prefix function.
This commit is contained in:
		
							parent
							
								
									8b1902c825
								
							
						
					
					
						commit
						796a0d2cfe
					
				
					 1 changed files with 4 additions and 4 deletions
				
			
		| 
						 | 
					@ -44,13 +44,13 @@ struct pw_thread_loop {
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
/** \endcond */
 | 
					/** \endcond */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static void before(void *data)
 | 
					static void impl_before(void *data)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	struct pw_thread_loop *this = data;
 | 
						struct pw_thread_loop *this = data;
 | 
				
			||||||
	pthread_mutex_unlock(&this->lock);
 | 
						pthread_mutex_unlock(&this->lock);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static void after(void *data)
 | 
					static void impl_after(void *data)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	struct pw_thread_loop *this = data;
 | 
						struct pw_thread_loop *this = data;
 | 
				
			||||||
	pthread_mutex_lock(&this->lock);
 | 
						pthread_mutex_lock(&this->lock);
 | 
				
			||||||
| 
						 | 
					@ -58,8 +58,8 @@ static void after(void *data)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static const struct spa_loop_control_hooks impl_hooks = {
 | 
					static const struct spa_loop_control_hooks impl_hooks = {
 | 
				
			||||||
	SPA_VERSION_LOOP_CONTROL_HOOKS,
 | 
						SPA_VERSION_LOOP_CONTROL_HOOKS,
 | 
				
			||||||
	before,
 | 
						.before = impl_before,
 | 
				
			||||||
	after,
 | 
						.after = impl_after,
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static void do_stop(void *data, uint64_t count)
 | 
					static void do_stop(void *data, uint64_t count)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue