summaryrefslogtreecommitdiff
path: root/src/gui
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/gui
parent43fd8a8d53d4bd811a8e4d468a78f201148e5896 (diff)
downloadplus-f3f5a316ca62e9d17776d4a49aab728aee65a5b5.tar.gz
plus-f3f5a316ca62e9d17776d4a49aab728aee65a5b5.tar.bz2
plus-f3f5a316ca62e9d17776d4a49aab728aee65a5b5.tar.xz
plus-f3f5a316ca62e9d17776d4a49aab728aee65a5b5.zip
move threads creation into sdl helper.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/whoisonline.cpp8
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;
}