diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-08-24 21:44:43 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-08-24 21:44:43 +0300 |
commit | f3f5a316ca62e9d17776d4a49aab728aee65a5b5 (patch) | |
tree | 22affcd563bb8569adfd42de15ecd64f6819fa56 /src/utils/sdl2helper.cpp | |
parent | 43fd8a8d53d4bd811a8e4d468a78f201148e5896 (diff) | |
download | manaplus-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.cpp | 6 |
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 |