mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-01-24 08:31:08 +00:00
26 lines
624 B
C
26 lines
624 B
C
#ifndef __QEMU_THREAD_H
|
|
#define __QEMU_THREAD_H 1
|
|
|
|
#include "unicorn/platform.h"
|
|
|
|
typedef struct QemuThread QemuThread;
|
|
|
|
#ifdef _WIN32
|
|
#include "qemu/thread-win32.h"
|
|
#else
|
|
#include "qemu/thread-posix.h"
|
|
#endif
|
|
|
|
#define QEMU_THREAD_JOINABLE 0
|
|
#define QEMU_THREAD_DETACHED 1
|
|
|
|
struct uc_struct;
|
|
// return -1 on error, 0 on success
|
|
int qemu_thread_create(struct uc_struct *uc, QemuThread *thread, const char *name,
|
|
void *(*start_routine)(void *),
|
|
void *arg, int mode);
|
|
void *qemu_thread_join(QemuThread *thread);
|
|
void qemu_thread_exit(struct uc_struct *uc, void *retval);
|
|
|
|
#endif
|