mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-09 13:29:59 -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
|
|
@ -25,13 +25,19 @@
|
|||
***/
|
||||
|
||||
#include <pulsecore/mutex.h>
|
||||
#include <pulsecore/atomic.h>
|
||||
|
||||
typedef struct pa_once {
|
||||
unsigned int once_value;
|
||||
pa_mutex *mutex;
|
||||
pa_atomic_ptr_t mutex;
|
||||
pa_atomic_t ref, done;
|
||||
} pa_once_t;
|
||||
|
||||
#define PA_ONCE_INIT { .once_value = 0, .mutex = NULL }
|
||||
#define PA_ONCE_INIT \
|
||||
{ \
|
||||
.mutex = PA_ATOMIC_PTR_INIT(NULL), \
|
||||
.ref = PA_ATOMIC_INIT(0), \
|
||||
.done = PA_ATOMIC_INIT(0) \
|
||||
}
|
||||
|
||||
typedef void (*pa_once_func_t) (void);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue