2008-01-14 12:24:29 +08:00
|
|
|
#ifndef QEMU_AUDIO_PT_INT_H
|
|
|
|
#define QEMU_AUDIO_PT_INT_H
|
|
|
|
|
|
|
|
#include <pthread.h>
|
|
|
|
|
|
|
|
struct audio_pt {
|
|
|
|
const char *drv;
|
|
|
|
pthread_t thread;
|
|
|
|
pthread_cond_t cond;
|
|
|
|
pthread_mutex_t mutex;
|
|
|
|
};
|
|
|
|
|
|
|
|
int audio_pt_init (struct audio_pt *, void *(*) (void *), void *,
|
|
|
|
const char *, const char *);
|
|
|
|
int audio_pt_fini (struct audio_pt *, const char *);
|
|
|
|
int audio_pt_lock (struct audio_pt *, const char *);
|
|
|
|
int audio_pt_unlock (struct audio_pt *, const char *);
|
|
|
|
int audio_pt_wait (struct audio_pt *, const char *);
|
|
|
|
int audio_pt_unlock_and_signal (struct audio_pt *, const char *);
|
|
|
|
int audio_pt_join (struct audio_pt *, void **, const char *);
|
|
|
|
|
2016-06-29 21:29:06 +08:00
|
|
|
#endif /* QEMU_AUDIO_PT_INT_H */
|