[pulseaudio-commits] r1620 - in /branches/lennart/src/pulsecore: flist.h once-posix.c once.h

svnmailer-noreply at 0pointer.de svnmailer-noreply at 0pointer.de
Fri Aug 10 14:59:52 PDT 2007


Author: lennart
Date: Fri Aug 10 23:59:51 2007
New Revision: 1620

URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=3D1620&root=3Dpulseaudio&vi=
ew=3Drev
Log:
Rename pa_once_t to pa_once

Modified:
    branches/lennart/src/pulsecore/flist.h
    branches/lennart/src/pulsecore/once-posix.c
    branches/lennart/src/pulsecore/once.h

Modified: branches/lennart/src/pulsecore/flist.h
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/branches/lennart/src/pulsecore/=
flist.h?rev=3D1620&root=3Dpulseaudio&r1=3D1619&r2=3D1620&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/pulsecore/flist.h (original)
+++ branches/lennart/src/pulsecore/flist.h Fri Aug 10 23:59:51 2007
@@ -47,13 +47,13 @@
 #define PA_STATIC_FLIST_DECLARE(name, size, destroy_cb)                 \
     static struct {                                                     \
         pa_flist *flist;                                                \
-        pa_once_t once;                                                 \
+        pa_once once;                                                   \
     } name##_static_flist =3D { NULL, PA_ONCE_INIT };                     \
     static void name##_init(void) {                                     \
         name##_static_flist.flist =3D pa_flist_new(size);                 \
     }                                                                   \
     static inline pa_flist* name##_get(void) {                          \
-        pa_once(&name##_static_flist.once, name##_init);                \
+        pa_run_once(&name##_static_flist.once, name##_init);            \
         return name##_static_flist.flist;                               \
     }                                                                   \
     static void name##_destructor(void) PA_GCC_DESTRUCTOR;              \

Modified: branches/lennart/src/pulsecore/once-posix.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/branches/lennart/src/pulsecore/=
once-posix.c?rev=3D1620&root=3Dpulseaudio&r1=3D1619&r2=3D1620&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/pulsecore/once-posix.c (original)
+++ branches/lennart/src/pulsecore/once-posix.c Fri Aug 10 23:59:51 2007
@@ -33,7 +33,7 @@
 #include "once.h"
 =

 /* Not reentrant -- how could it be? */
-void pa_once(pa_once_t *control, pa_once_func_t func) {
+void pa_run_once(pa_once *control, pa_once_func_t func) {
     pa_mutex *m;
 =

     pa_assert(control);

Modified: branches/lennart/src/pulsecore/once.h
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/branches/lennart/src/pulsecore/=
once.h?rev=3D1620&root=3Dpulseaudio&r1=3D1619&r2=3D1620&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/pulsecore/once.h (original)
+++ branches/lennart/src/pulsecore/once.h Fri Aug 10 23:59:51 2007
@@ -30,17 +30,17 @@
 typedef struct pa_once {
     pa_atomic_ptr_t mutex;
     pa_atomic_t ref, done;
-} pa_once_t;
+} pa_once;
 =

 #define PA_ONCE_INIT                                                    \
     {                                                                   \
         .mutex =3D PA_ATOMIC_PTR_INIT(NULL),                              \
-        .ref =3D PA_ATOMIC_INIT(0),                                   \
-        .done =3D PA_ATOMIC_INIT(0)                                   \
+        .ref =3D PA_ATOMIC_INIT(0),                                       \
+        .done =3D PA_ATOMIC_INIT(0)                                       \
     }
 =

 typedef void (*pa_once_func_t) (void);
 =

-void pa_once(pa_once_t *o, pa_once_func_t f);
+void pa_run_once(pa_once *o, pa_once_func_t f);
 =

 #endif




More information about the pulseaudio-commits mailing list