Use std::this_thread everywhere

The previous logic wouldn't compile on linux using clang.

With the meson build requiring c++14, there's no need for platform
specific code. Really, the entire agi::util::sleep_for function could be
removed entirely, but I'll keep the patch minimal for now.
This commit is contained in:
arch1t3cht 2022-07-27 15:20:03 +02:00
parent 86354050f3
commit 1772dd17ae
1 changed files with 0 additions and 9 deletions

View File

@ -15,22 +15,13 @@
#include <libaegisub/util.h>
#include <cstddef>
#include <thread>
#include <boost/thread.hpp>
namespace agi { namespace util {
void SetThreadName(const char *) { }
void sleep_for(int ms) {
#ifdef __clang__
} }