mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-29 05:40:23 -04:00
asyncmsgq: introduce pa_asyncmsgq_dispatching()
This commit is contained in:
parent
e5b08a81d2
commit
0c20e740f6
2 changed files with 8 additions and 0 deletions
|
|
@ -351,3 +351,9 @@ void pa_asyncmsgq_flush(pa_asyncmsgq *a, pa_bool_t run) {
|
|||
pa_asyncmsgq_unref(a);
|
||||
}
|
||||
}
|
||||
|
||||
pa_bool_t pa_asyncmsgq_dispatching(pa_asyncmsgq *a) {
|
||||
pa_assert(PA_REFCNT_VALUE(a) > 0);
|
||||
|
||||
return !!a->current;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -78,4 +78,6 @@ int pa_asyncmsgq_write_fd(pa_asyncmsgq *q);
|
|||
void pa_asyncmsgq_write_before_poll(pa_asyncmsgq *a);
|
||||
void pa_asyncmsgq_write_after_poll(pa_asyncmsgq *a);
|
||||
|
||||
pa_bool_t pa_asyncmsgq_dispatching(pa_asyncmsgq *a);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue