From 380e5fd99fbf44d0d8f49f926c9a19f2aa10b61e Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Mon, 29 Apr 2013 20:18:29 -0700 Subject: [PATCH] Use boost::thread in LibassSubtitlesProvider libstdc++ 4.7's std::thread is missing sleep_for. --- aegisub/src/subtitles_provider_libass.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/aegisub/src/subtitles_provider_libass.cpp b/aegisub/src/subtitles_provider_libass.cpp index 38d80b0c6..73c5d0938 100644 --- a/aegisub/src/subtitles_provider_libass.cpp +++ b/aegisub/src/subtitles_provider_libass.cpp @@ -52,11 +52,11 @@ #include #include -#include #include +#include +#include #include #include -#include namespace { std::unique_ptr cache_queue; @@ -104,7 +104,7 @@ LibassSubtitlesProvider::LibassSubtitlesProvider(std::string) progress.Run([=](agi::ProgressSink *ps) { ps->SetIndeterminate(); while (!*done && !ps->IsCancelled()) - std::this_thread::sleep_for(std::chrono::milliseconds(250)); + boost::this_thread::sleep_for(boost::chrono::milliseconds(250)); }); ass_renderer = *renderer;