mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-25 06:59:52 -05:00
Rename pa_once_t to pa_once
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1620 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
d4cb042a56
commit
27f75a5a1e
3 changed files with 7 additions and 7 deletions
|
|
@ -30,17 +30,17 @@
|
|||
typedef struct pa_once {
|
||||
pa_atomic_ptr_t mutex;
|
||||
pa_atomic_t ref, done;
|
||||
} pa_once_t;
|
||||
} pa_once;
|
||||
|
||||
#define PA_ONCE_INIT \
|
||||
{ \
|
||||
.mutex = PA_ATOMIC_PTR_INIT(NULL), \
|
||||
.ref = PA_ATOMIC_INIT(0), \
|
||||
.done = PA_ATOMIC_INIT(0) \
|
||||
.ref = PA_ATOMIC_INIT(0), \
|
||||
.done = PA_ATOMIC_INIT(0) \
|
||||
}
|
||||
|
||||
typedef void (*pa_once_func_t) (void);
|
||||
|
||||
void pa_once(pa_once_t *o, pa_once_func_t f);
|
||||
void pa_run_once(pa_once *o, pa_once_func_t f);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue