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