summaryrefslogtreecommitdiff
path: root/src/utils/sdl2helper.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-08-24 21:44:43 +0300
committerAndrei Karas <akaras@inbox.ru>2013-08-24 21:44:43 +0300
commitf3f5a316ca62e9d17776d4a49aab728aee65a5b5 (patch)
tree22affcd563bb8569adfd42de15ecd64f6819fa56 /src/utils/sdl2helper.h
parent43fd8a8d53d4bd811a8e4d468a78f201148e5896 (diff)
downloadmv-f3f5a316ca62e9d17776d4a49aab728aee65a5b5.tar.gz
mv-f3f5a316ca62e9d17776d4a49aab728aee65a5b5.tar.bz2
mv-f3f5a316ca62e9d17776d4a49aab728aee65a5b5.tar.xz
mv-f3f5a316ca62e9d17776d4a49aab728aee65a5b5.zip
move threads creation into sdl helper.
Diffstat (limited to 'src/utils/sdl2helper.h')
-rw-r--r--src/utils/sdl2helper.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/utils/sdl2helper.h b/src/utils/sdl2helper.h
index 5ba2d45bb..f8dd40270 100644
--- a/src/utils/sdl2helper.h
+++ b/src/utils/sdl2helper.h
@@ -24,6 +24,8 @@
#ifdef USE_SDL2
#include "utils/stringvector.h"
+#include <SDL_thread.h>
+
#include "localconsts.h"
struct SDL_Surface;
@@ -45,6 +47,9 @@ namespace SDL
void setVsync(const int val);
bool getWindowWMInfo(SDL_Window *const window, SDL_SysWMinfo *const info);
+
+ SDL_Thread *createThread(SDL_ThreadFunction fn,
+ const char *name, void *data);
} // namespace SDL
#endif // USE_SDL2