all repos — mgba @ 34ddb09516c584e7a47cf61e0ad3fe00c7e13c5a

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	const char* fname;
17	int activeKeys;
18
19	// Threading state
20	pthread_mutex_t mutex;
21	pthread_cond_t cond;
22	pthread_t thread;
23};
24
25int GBAThreadStart(struct GBAThread* threadContext);
26void GBAThreadJoin(struct GBAThread* threadContext);
27
28#endif