[pulseaudio-commits] r1621 - /branches/lennart/src/tests/thread-test.c

svnmailer-noreply at 0pointer.de svnmailer-noreply at 0pointer.de
Fri Aug 10 15:00:23 PDT 2007


Author: lennart
Date: Sat Aug 11 00:00:22 2007
New Revision: 1621

URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=3D1621&root=3Dpulseaudio&vi=
ew=3Drev
Log:
update thread test to use pa_once instead of pa_once_t

Modified:
    branches/lennart/src/tests/thread-test.c

Modified: branches/lennart/src/tests/thread-test.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/branches/lennart/src/tests/thre=
ad-test.c?rev=3D1621&root=3Dpulseaudio&r1=3D1620&r2=3D1621&view=3Ddiff
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
--- branches/lennart/src/tests/thread-test.c (original)
+++ branches/lennart/src/tests/thread-test.c Sat Aug 11 00:00:22 2007
@@ -42,7 +42,7 @@
     pa_log("once!");
 }
 =

-static pa_once_t once =3D PA_ONCE_INIT;
+static pa_once once =3D PA_ONCE_INIT;
 =

 static void thread_func(void *data) {
     pa_tls_set(tls, data);
@@ -72,7 +72,7 @@
 =

         pa_mutex_unlock(mutex);
 =

-        pa_once(&once, once_func);
+        pa_run_once(&once, once_func);
 =

         pa_cond_signal(cond2, 0);
 =





More information about the pulseaudio-commits mailing list