summaryrefslogtreecommitdiffstats
path: root/src/pulsecore/once.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pulsecore/once.c')
-rw-r--r--src/pulsecore/once.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/pulsecore/once.c b/src/pulsecore/once.c
index 198bd41e..989741dc 100644
--- a/src/pulsecore/once.c
+++ b/src/pulsecore/once.c
@@ -1,5 +1,3 @@
-/* $Id$ */
-
/***
This file is part of PulseAudio.
@@ -43,7 +41,7 @@ int pa_once_begin(pa_once *control) {
/* Caveat: We have to make sure that the once func has completed
* before returning, even if the once func is not actually
* executed by us. Hence the awkward locking. */
-
+
for (;;) {
if ((m = pa_atomic_ptr_load(&control->mutex))) {
@@ -69,7 +67,7 @@ int pa_once_begin(pa_once *control) {
void pa_once_end(pa_once *control) {
pa_mutex *m;
-
+
pa_assert(control);
pa_atomic_store(&control->done, 1);