[pulseaudio-commits] r1384 - /trunk/src/pulsecore/atomic.h
svnmailer-noreply at 0pointer.de
svnmailer-noreply at 0pointer.de
Sat Sep 9 15:54:14 PDT 2006
Author: lennart
Date: Sun Sep 10 00:54:11 2006
New Revision: 1384
URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=1384&root=pulseaudio&view=rev
Log:
add static initializer PA_ATOMIC_INIT()
Modified:
trunk/src/pulsecore/atomic.h
Modified: trunk/src/pulsecore/atomic.h
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/pulsecore/atomic.h?rev=1384&root=pulseaudio&r1=1383&r2=1384&view=diff
==============================================================================
--- trunk/src/pulsecore/atomic.h (original)
+++ trunk/src/pulsecore/atomic.h Sun Sep 10 00:54:11 2006
@@ -32,6 +32,8 @@
typedef struct pa_atomic_int {
volatile AO_t value;
} pa_atomic_int_t;
+
+#define PA_ATOMIC_INIT(v) { .value = (v) }
/* For now we do only full memory barriers. Eventually we might want
* to support more elaborate memory barriers, in which case we will add
More information about the pulseaudio-commits
mailing list