Lines Matching refs:thread

37 #include <pulsecore/thread.h>
42 #include "thread-mainloop.h"
49 pa_thread* thread;
57 return pa_thread_self() == m->thread;
67 * avahi_simple_poll_quit() can succeed from another thread. */
76 static void thread(void *userdata) {
85 // Once thread OS_RendererML and OS_AudioML is created, it will not exit.
90 // Handle unexpected thread termination: kill the process to ensure continued service in user ver.
122 /* Make sure that this function is not called from the helper thread */
123 pa_assert((m->thread && !pa_thread_is_running(m->thread)) || !in_worker(m));
127 if (m->thread)
128 pa_thread_free(m->thread);
143 pa_assert(!m->thread || !pa_thread_is_running(m->thread));
145 if (!(m->thread = pa_thread_new(m->name ? m->name : "threaded-ml", thread, m)))
154 if (!m->thread || !pa_thread_is_running(m->thread))
157 /* Make sure that this function is not called from the helper thread */
164 pa_thread_join(m->thread);
170 /* Make sure that this function is not called from the helper thread, unless it is unlocked */
171 //pa_assert(!m->thread || !pa_thread_is_running(m->thread) || !in_worker(m) || pa_atomic_load(&m->in_once_unlocked));
179 /* Make sure that this function is not called from the helper thread, unless it is unlocked */
180 //pa_assert(!m->thread || !pa_thread_is_running(m->thread) || !in_worker(m) || pa_atomic_load(&m->in_once_unlocked));
203 /* Make sure that this function is not called from the helper thread */
204 pa_assert(!m->thread || !pa_thread_is_running(m->thread) || !in_worker(m));
218 /* Make sure that this function is not called from the helper thread */
219 //pa_assert(!m->thread || !pa_thread_is_running(m->thread) || !in_worker(m));
242 return m->thread && pa_thread_self() == m->thread;
251 if (m->thread)
252 pa_thread_set_name(m->thread, m->name);
284 /* Make sure that this function is not called from the helper thread */
285 pa_assert((m->thread && !pa_thread_is_running(m->thread)) || !in_worker(m));