mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -04: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 */
|
||||
|
||||
static void before(void *data)
|
||||
static void impl_before(void *data)
|
||||
{
|
||||
struct pw_thread_loop *this = data;
|
||||
pthread_mutex_unlock(&this->lock);
|
||||
}
|
||||
|
||||
static void after(void *data)
|
||||
static void impl_after(void *data)
|
||||
{
|
||||
struct pw_thread_loop *this = data;
|
||||
pthread_mutex_lock(&this->lock);
|
||||
|
|
@ -58,8 +58,8 @@ static void after(void *data)
|
|||
|
||||
static const struct spa_loop_control_hooks impl_hooks = {
|
||||
SPA_VERSION_LOOP_CONTROL_HOOKS,
|
||||
before,
|
||||
after,
|
||||
.before = impl_before,
|
||||
.after = impl_after,
|
||||
};
|
||||
|
||||
static void do_stop(void *data, uint64_t count)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue