diff options
author | Lennart Poettering <lennart@poettering.net> | 2006-09-09 22:54:11 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2006-09-09 22:54:11 +0000 |
commit | c89cb6a00f6ab862a047db1124486492e5e59f83 (patch) | |
tree | 3924f048e72259901bd0bad2008691f570daba6a /src/pulsecore/atomic.h | |
parent | b93fedd49c95675ed8ce089b94b2b3bcfd903565 (diff) |
add static initializer PA_ATOMIC_INIT()
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1384 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'src/pulsecore/atomic.h')
-rw-r--r-- | src/pulsecore/atomic.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/pulsecore/atomic.h b/src/pulsecore/atomic.h index f789142d..8d608b5b 100644 --- a/src/pulsecore/atomic.h +++ b/src/pulsecore/atomic.h @@ -33,6 +33,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 * suffixes to the function names */ |