all repos — mgba @ 67d25794e1a8b04269742b0d46da927eef30f008

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