From: LMH Date: Fri, 3 Jan 2014 17:24:43 +0000 (-1000) Subject: Revert "Speed improvement: Moving check online to different thread" X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=39264f3828461d3fe55850dcdb73fe7dc70c6bc8;p=supertux.git Revert "Speed improvement: Moving check online to different thread" Temporarily reverting changes to addon_menu.cpp until they can be built on platforms other than OS X Mavericks. This reverts commit 6d4d72e1670b7661049efdb378056b3a4333b467. --- diff --git a/src/supertux/menu/addon_menu.cpp b/src/supertux/menu/addon_menu.cpp index e6ba6c577..a3cc6d5fa 100644 --- a/src/supertux/menu/addon_menu.cpp +++ b/src/supertux/menu/addon_menu.cpp @@ -18,7 +18,6 @@ #include #include -#include #include #include "addon/addon.hpp" @@ -32,12 +31,6 @@ bool generate_addons_menu_sorter(const Addon* a1, const Addon* a2) return a1->title < a2->title; } -void check_online() // Shortcut to expensive function to be called by a thread -{ - AddonManager::get_instance().check_online(); -} - - } // namespace AddonMenu::AddonMenu() : @@ -139,8 +132,7 @@ AddonMenu::check_menu() { try { - std::thread addonThread(check_online); - addonThread.join(); + AddonManager::get_instance().check_online(); refresh(); set_active_item(index); }