mirror of https://github.com/odrling/Aegisub
Use boost::thread in LibassSubtitlesProvider
libstdc++ 4.7's std::thread is missing sleep_for.
This commit is contained in:
parent
3e299958bd
commit
380e5fd99f
|
@ -52,11 +52,11 @@
|
||||||
#include <libaegisub/dispatch.h>
|
#include <libaegisub/dispatch.h>
|
||||||
#include <libaegisub/log.h>
|
#include <libaegisub/log.h>
|
||||||
|
|
||||||
#include <boost/range/algorithm_ext/push_back.hpp>
|
|
||||||
#include <boost/gil/gil_all.hpp>
|
#include <boost/gil/gil_all.hpp>
|
||||||
|
#include <boost/range/algorithm_ext/push_back.hpp>
|
||||||
|
#include <boost/thread.hpp>
|
||||||
#include <memory>
|
#include <memory>
|
||||||
#include <mutex>
|
#include <mutex>
|
||||||
#include <thread>
|
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
std::unique_ptr<agi::dispatch::Queue> cache_queue;
|
std::unique_ptr<agi::dispatch::Queue> cache_queue;
|
||||||
|
@ -104,7 +104,7 @@ LibassSubtitlesProvider::LibassSubtitlesProvider(std::string)
|
||||||
progress.Run([=](agi::ProgressSink *ps) {
|
progress.Run([=](agi::ProgressSink *ps) {
|
||||||
ps->SetIndeterminate();
|
ps->SetIndeterminate();
|
||||||
while (!*done && !ps->IsCancelled())
|
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;
|
ass_renderer = *renderer;
|
||||||
|
|
Loading…
Reference in New Issue