summaryrefslogtreecommitdiff
path: root/src/yuzu_tester/yuzu.cpp
diff options
context:
space:
mode:
authorFernando Sahmkow <fsahmkow27@gmail.com>2020-02-25 11:12:46 -0400
committerFernando Sahmkow <fsahmkow27@gmail.com>2020-06-27 11:35:09 -0400
commitdc580582034fb5937aa53176fdaa4bd0fc4acce8 (patch)
tree6d351a6c3a76fee0a9bc1ab546d07c0583a9d9cd /src/yuzu_tester/yuzu.cpp
parenta5c58a25ef3ed7975c8466933ca38e03c999b027 (diff)
General: Setup yuzu threads' microprofile, naming and registry.
Diffstat (limited to 'src/yuzu_tester/yuzu.cpp')
-rw-r--r--src/yuzu_tester/yuzu.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/yuzu_tester/yuzu.cpp b/src/yuzu_tester/yuzu.cpp
index d62686dd2..083667baf 100644
--- a/src/yuzu_tester/yuzu.cpp
+++ b/src/yuzu_tester/yuzu.cpp
@@ -2,6 +2,7 @@
// Licensed under GPLv2 or any later version
// Refer to the license.txt file included.
+#include <chrono>
#include <iostream>
#include <memory>
#include <string>
@@ -256,8 +257,9 @@ int main(int argc, char** argv) {
system.Renderer().Rasterizer().LoadDiskResources();
system.Run();
- while (!finished)
- ;
+ while (!finished) {
+ std::this_thread::sleep_for(std::chrono::milliseconds(1));
+ }
system.Pause();
detached_tasks.WaitForAllTasks();