all repos — mgba @ 71986b0477a960833c87113d7dda36f02132e93b

mGBA Game Boy Advance Emulator

src/gba/gba-thread.h (view raw)

 1#ifndef GBA_THREAD_H
 2#define GBA_THREAD_H
 3
 4#include <pthread.h>
 5
 6struct GBAThread {
 7	// Output
 8	int started;
 9	struct GBA* gba;
10	struct ARMDebugger* debugger;
11
12	// Input
13	struct GBAVideoRenderer* renderer;
14	int fd;
15
16	// Threading state
17	pthread_mutex_t mutex;
18	pthread_cond_t cond;
19	pthread_t thread;
20};
21
22int GBAThreadStart(struct GBAThread* threadContext);
23void GBAThreadJoin(struct GBAThread* threadContext);
24
25#endif