mirror of
https://github.com/xemu-project/xemu.git
synced 2024-11-27 21:40:49 +00:00
9257d46d55
For now, qemu_cond_timedwait and qemu_mutex_timedlock are left as POSIX-only functions. They can be removed later, once the patches that remove their uses are in. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
19 lines
287 B
C
19 lines
287 B
C
#ifndef __QEMU_THREAD_POSIX_H
|
|
#define __QEMU_THREAD_POSIX_H 1
|
|
#include "pthread.h"
|
|
|
|
struct QemuMutex {
|
|
pthread_mutex_t lock;
|
|
};
|
|
|
|
struct QemuCond {
|
|
pthread_cond_t cond;
|
|
};
|
|
|
|
struct QemuThread {
|
|
pthread_t thread;
|
|
};
|
|
|
|
void qemu_thread_signal(QemuThread *thread, int sig);
|
|
#endif
|