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:
Lennart Poettering 2007-06-11 12:08:37 +00:00
parent 6aeec56708
commit 00da37f2c4
72 changed files with 4389 additions and 1767 deletions

View file

@ -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);