(void) pa_mainloop_run(m->real_mainloop, NULL);
pa_mutex_unlock(m->mutex);
+
+#ifdef __TIZEN__
+ pa_log_info("thread exit : m=%p, thread=%p, name=%s", m, m->thread, m->name);
+#endif
}
pa_threaded_mainloop *pa_threaded_mainloop_new(void) {
}
void pa_threaded_mainloop_stop(pa_threaded_mainloop *m) {
+#ifdef __TIZEN__
+ int ret = 0;
+#endif
pa_assert(m);
if (!m->thread || !pa_thread_is_running(m->thread))
pa_mainloop_quit(m->real_mainloop, 0);
pa_mutex_unlock(m->mutex);
+#ifdef __TIZEN__
+ ret = pa_thread_join(m->thread);
+ if (ret != 0)
+ pa_log_error("pa_thread_join failed : m=%p, thread=%p, errno=%d", m, m->thread, ret);
+#else
pa_thread_join(m->thread);
+#endif
+
}
void pa_threaded_mainloop_lock(pa_threaded_mainloop *m) {