summaryrefslogtreecommitdiff
path: root/src/utils/sdl2helper.cpp
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.cpp
parent43fd8a8d53d4bd811a8e4d468a78f201148e5896 (diff)
downloadmanaplus-f3f5a316ca62e9d17776d4a49aab728aee65a5b5.tar.gz
manaplus-f3f5a316ca62e9d17776d4a49aab728aee65a5b5.tar.bz2
manaplus-f3f5a316ca62e9d17776d4a49aab728aee65a5b5.tar.xz
manaplus-f3f5a316ca62e9d17776d4a49aab728aee65a5b5.zip
move threads creation into sdl helper.
Diffstat (limited to 'src/utils/sdl2helper.cpp')
-rw-r--r--src/utils/sdl2helper.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/utils/sdl2helper.cpp b/src/utils/sdl2helper.cpp
index a65f381b3..683a1b322 100644
--- a/src/utils/sdl2helper.cpp
+++ b/src/utils/sdl2helper.cpp
@@ -68,4 +68,10 @@ bool SDL::getWindowWMInfo(SDL_Window *const window, SDL_SysWMinfo *const info)
return SDL_GetWindowWMInfo(window, info);
}
+SDL_Thread *SDL::createThread(SDL_ThreadFunction fn,
+ const char *name, void *data)
+{
+ return SDL_CreateThread(fn, name, data);
+}
+
#endif // USE_SDL2