mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-15 06:59:58 -05:00
Merge HUGE set of changes temporarily into a branch, to allow me to move them from one machine to another (lock-free and stuff)
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1469 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
6aeec56708
commit
00da37f2c4
72 changed files with 4389 additions and 1767 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