all repos — mgba @ e80ab4c855ef1d3c2e320b2a21b72b9fc1de74a4

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	int useDebugger;
10	struct GBA* gba;
11	struct ARMDebugger* debugger;
12
13	// Input
14	struct GBAVideoRenderer* renderer;
15	int fd;
16	int activeKeys;
17
18	// Threading state
19	pthread_mutex_t mutex;
20	pthread_cond_t cond;
21	pthread_t thread;
22};
23
24int GBAThreadStart(struct GBAThread* threadContext);
25void GBAThreadJoin(struct GBAThread* threadContext);
26
27#endif