commit | b71e027d0c674bfa1716e94fa0b045e56772ce2f | [log] [tgz] |
---|---|---|
author | swissChili <swisschili@fastmail.com> | Sat Aug 08 15:56:14 2020 -0700 |
committer | swissChili <swisschili@fastmail.com> | Sat Aug 08 15:56:14 2020 -0700 |
tree | 4efd81946eb1cf8737bdb3e9e112f8a6cd1b759a | |
parent | cc27cfe673868e6322908f2c448344988d35b222 [diff] [blame] |
Add good error handling
diff --git a/screen.h b/screen.h index 75dc8cf..9eeddc8 100644 --- a/screen.h +++ b/screen.h
@@ -36,6 +36,12 @@ bool sdl_screen(sdl_screen_t *scr, uint8_t *mem, bool dirty); #ifndef NO_PTHREAD + +#include <pthread.h> + +extern bool g_screen_thread_halt; + void *screen_thread(uint8_t *mem); -void start_screen_thread(uint8_t *mem); +pthread_t start_screen_thread(uint8_t *mem); + #endif