mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-10 13:29:58 -05:00
update thread test to use pa_once instead of pa_once_t
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1621 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
27f75a5a1e
commit
aff77c162b
1 changed files with 2 additions and 2 deletions
|
|
@ -42,7 +42,7 @@ static void once_func(void) {
|
|||
pa_log("once!");
|
||||
}
|
||||
|
||||
static pa_once_t once = PA_ONCE_INIT;
|
||||
static pa_once once = PA_ONCE_INIT;
|
||||
|
||||
static void thread_func(void *data) {
|
||||
pa_tls_set(tls, data);
|
||||
|
|
@ -72,7 +72,7 @@ static void thread_func(void *data) {
|
|||
|
||||
pa_mutex_unlock(mutex);
|
||||
|
||||
pa_once(&once, once_func);
|
||||
pa_run_once(&once, once_func);
|
||||
|
||||
pa_cond_signal(cond2, 0);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue