mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-06 13:29:56 -05:00
Replace AO_xxx usage with pa_atomic_xxx and friends wherever it makes sense
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1459 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
6a2dffd78a
commit
918cacb4f4
6 changed files with 78 additions and 73 deletions
|
|
@ -53,6 +53,10 @@ static inline int pa_atomic_add(pa_atomic_int_t *a, int i) {
|
|||
return AO_fetch_and_add_full(&a->value, (AO_t) i);
|
||||
}
|
||||
|
||||
static inline int pa_atomic_sub(pa_atomic_int_t *a, int i) {
|
||||
return AO_fetch_and_add_full(&a->value, (AO_t) -i);
|
||||
}
|
||||
|
||||
static inline int pa_atomic_inc(pa_atomic_int_t *a) {
|
||||
return AO_fetch_and_add1_full(&a->value);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue