diff options
Diffstat (limited to 'src/pulsecore/once.h')
-rw-r--r-- | src/pulsecore/once.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/pulsecore/once.h b/src/pulsecore/once.h index edc81881..a478d1ff 100644 --- a/src/pulsecore/once.h +++ b/src/pulsecore/once.h @@ -23,16 +23,16 @@ ***/ #include <pulsecore/atomic.h> +#include <pulsecore/mutex.h> typedef struct pa_once { - pa_atomic_ptr_t mutex; - pa_atomic_t ref, done; + pa_static_mutex mutex; + pa_atomic_t done; } pa_once; #define PA_ONCE_INIT \ { \ - .mutex = PA_ATOMIC_PTR_INIT(NULL), \ - .ref = PA_ATOMIC_INIT(0), \ + .mutex = PA_STATIC_MUTEX_INIT, \ .done = PA_ATOMIC_INIT(0) \ } |