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