diff options
Diffstat (limited to 'src/pulsecore/thread.h')
-rw-r--r-- | src/pulsecore/thread.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/pulsecore/thread.h b/src/pulsecore/thread.h index 9b99c8c2..8aabecfa 100644 --- a/src/pulsecore/thread.h +++ b/src/pulsecore/thread.h @@ -24,9 +24,13 @@ #include <pulse/def.h> +#define PA_THREAD_ONCE_INIT 0 + typedef struct pa_thread pa_thread; typedef void (*pa_thread_func_t) (void *userdata); +typedef void (*pa_thread_once_func_t) (void); +typedef unsigned int pa_thread_once_t; pa_thread* pa_thread_new(pa_thread_func_t thread_func, void *userdata); void pa_thread_free(pa_thread *t); @@ -34,6 +38,7 @@ int pa_thread_join(pa_thread *t); int pa_thread_is_running(pa_thread *t); pa_thread *pa_thread_self(void); void pa_thread_yield(void); +void pa_thread_once(pa_thread_once_t *control, pa_thread_once_func_t once_func); typedef struct pa_tls pa_tls; |