diff options
| author | 2020-02-25 11:12:46 -0400 | |
|---|---|---|
| committer | 2020-06-27 11:35:09 -0400 | |
| commit | dc580582034fb5937aa53176fdaa4bd0fc4acce8 (patch) | |
| tree | 6d351a6c3a76fee0a9bc1ab546d07c0583a9d9cd /src/yuzu_cmd/yuzu.cpp | |
| parent | CPU_Manager: remove debugging code. (diff) | |
| download | yuzu-dc580582034fb5937aa53176fdaa4bd0fc4acce8.tar.gz yuzu-dc580582034fb5937aa53176fdaa4bd0fc4acce8.tar.xz yuzu-dc580582034fb5937aa53176fdaa4bd0fc4acce8.zip | |
General: Setup yuzu threads' microprofile, naming and registry.
Diffstat (limited to 'src/yuzu_cmd/yuzu.cpp')
| -rw-r--r-- | src/yuzu_cmd/yuzu.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/yuzu_cmd/yuzu.cpp b/src/yuzu_cmd/yuzu.cpp index 38ffdfbd3..e6c6a839d 100644 --- a/src/yuzu_cmd/yuzu.cpp +++ b/src/yuzu_cmd/yuzu.cpp | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | // Licensed under GPLv2 or any later version | 2 | // Licensed under GPLv2 or any later version |
| 3 | // Refer to the license.txt file included. | 3 | // Refer to the license.txt file included. |
| 4 | 4 | ||
| 5 | #include <chrono> | ||
| 5 | #include <iostream> | 6 | #include <iostream> |
| 6 | #include <memory> | 7 | #include <memory> |
| 7 | #include <string> | 8 | #include <string> |
| @@ -237,8 +238,9 @@ int main(int argc, char** argv) { | |||
| 237 | 238 | ||
| 238 | std::thread render_thread([&emu_window] { emu_window->Present(); }); | 239 | std::thread render_thread([&emu_window] { emu_window->Present(); }); |
| 239 | system.Run(); | 240 | system.Run(); |
| 240 | while (emu_window->IsOpen()) | 241 | while (emu_window->IsOpen()) { |
| 241 | ; | 242 | std::this_thread::sleep_for(std::chrono::milliseconds(1)); |
| 243 | } | ||
| 242 | system.Pause(); | 244 | system.Pause(); |
| 243 | render_thread.join(); | 245 | render_thread.join(); |
| 244 | 246 | ||