mirror of https://github.com/odrling/Aegisub
Use std::this_thread on Windows to avoid having to build boost.chrono
This commit is contained in:
parent
0638af6825
commit
4662f34774
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue