projects
/
platform
/
upstream
/
pulseaudio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
27f75a5
)
update thread test to use pa_once instead of pa_once_t
author
Lennart Poettering
<lennart@poettering.net>
Fri, 10 Aug 2007 22:00:22 +0000
(22:00 +0000)
committer
Lennart Poettering
<lennart@poettering.net>
Fri, 10 Aug 2007 22:00:22 +0000
(22:00 +0000)
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1621
fefdeb5f
-60dc-0310-8127-
8f9354f1896f
src/tests/thread-test.c
patch
|
blob
|
history
diff --git
a/src/tests/thread-test.c
b/src/tests/thread-test.c
index
2153c98
..
0077cde
100644
(file)
--- a/
src/tests/thread-test.c
+++ b/
src/tests/thread-test.c
@@
-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);