all repos — mgba @ 0bfb77106bf5f9d92b72089e8c3c639320fe2cab

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