all repos — mgba @ 2a6e7db6932a4c78dfe8a955041593ab8570f5af

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