mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-11 13:30:02 -05:00
merge 'lennart' branch back into trunk.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1971 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
6687dd0131
commit
a67c21f093
294 changed files with 79057 additions and 11614 deletions
|
|
@ -27,18 +27,18 @@
|
|||
#include <pulsecore/atomic.h>
|
||||
|
||||
#define PA_REFCNT_DECLARE \
|
||||
pa_atomic_int_t _ref
|
||||
pa_atomic_t _ref
|
||||
|
||||
#define PA_REFCNT_INIT(p) \
|
||||
pa_atomic_store(&p->_ref, 1)
|
||||
pa_atomic_store(&(p)->_ref, 1)
|
||||
|
||||
#define PA_REFCNT_INC(p) \
|
||||
pa_atomic_inc(&p->_ref)
|
||||
pa_atomic_inc(&(p)->_ref)
|
||||
|
||||
#define PA_REFCNT_DEC(p) \
|
||||
(pa_atomic_dec(&p->_ref)-1)
|
||||
(pa_atomic_dec(&(p)->_ref)-1)
|
||||
|
||||
#define PA_REFCNT_VALUE(p) \
|
||||
pa_atomic_load(&p->_ref)
|
||||
pa_atomic_load(&(p)->_ref)
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue