mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-06 13:29:56 -05:00
add static initializer PA_ATOMIC_INIT()
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1384 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
b93fedd49c
commit
c89cb6a00f
1 changed files with 2 additions and 0 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue