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/gui/whoisonline.cpp | |
parent | 43fd8a8d53d4bd811a8e4d468a78f201148e5896 (diff) | |
download | manaverse-f3f5a316ca62e9d17776d4a49aab728aee65a5b5.tar.gz manaverse-f3f5a316ca62e9d17776d4a49aab728aee65a5b5.tar.bz2 manaverse-f3f5a316ca62e9d17776d4a49aab728aee65a5b5.tar.xz manaverse-f3f5a316ca62e9d17776d4a49aab728aee65a5b5.zip |
move threads creation into sdl helper.
Diffstat (limited to 'src/gui/whoisonline.cpp')
-rw-r--r-- | src/gui/whoisonline.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/gui/whoisonline.cpp b/src/gui/whoisonline.cpp index 4b1c638ca..c1ea05881 100644 --- a/src/gui/whoisonline.cpp +++ b/src/gui/whoisonline.cpp @@ -45,6 +45,7 @@ #include "net/playerhandler.h" #include "utils/gettext.h" +#include "utils/sdlhelper.h" #include <SDL.h> #include <SDL_thread.h> @@ -581,13 +582,8 @@ void WhoIsOnline::download() SDL_WaitThread(mThread, nullptr); mDownloadComplete = false; -#ifdef USE_SDL2 - mThread = SDL_CreateThread(WhoIsOnline::downloadThread, + mThread = SDL::createThread(WhoIsOnline::downloadThread, "whoisonline", this); -#else - mThread = SDL_CreateThread(WhoIsOnline::downloadThread, this); -#endif - if (mThread == nullptr) mDownloadStatus = UPDATE_ERROR; } |