Use std::this_thread on Windows to avoid having to build boost.chrono

This commit is contained in:
Thomas Goyne 2013-05-02 09:25:18 -07:00
parent 0638af6825
commit 4662f34774
1 changed files with 5 additions and 0 deletions

View File

@ -57,6 +57,7 @@
#include <boost/thread.hpp>
#include <memory>
#include <mutex>
#include <thread>
namespace {
std::unique_ptr<agi::dispatch::Queue> cache_queue;
@ -104,7 +105,11 @@ LibassSubtitlesProvider::LibassSubtitlesProvider(std::string)
progress.Run([=](agi::ProgressSink *ps) {
ps->SetIndeterminate();
while (!*done && !ps->IsCancelled())
#ifdef _MSC_VER
std::this_thread::sleep_for(std::chrono::milliseconds(250));
#else
boost::this_thread::sleep_for(boost::chrono::milliseconds(250));
#endif
});
ass_renderer = *renderer;