diff options
| author | 2022-07-27 22:31:41 +0100 | |
|---|---|---|
| committer | 2022-08-02 01:01:54 -0400 | |
| commit | 83a24ad638a2c3ff628fe109391586be9bd3a45d (patch) | |
| tree | 3ac77d8c6876200075bd6c68eebc6f4098df1422 /src/common | |
| parent | Rework multi-core vsync (diff) | |
| download | yuzu-83a24ad638a2c3ff628fe109391586be9bd3a45d.tar.gz yuzu-83a24ad638a2c3ff628fe109391586be9bd3a45d.tar.xz yuzu-83a24ad638a2c3ff628fe109391586be9bd3a45d.zip | |
Make coretiming waiting more accurate
Diffstat (limited to 'src/common')
| -rw-r--r-- | src/common/thread.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/common/thread.h b/src/common/thread.h index 1552f58e0..e17a7850f 100644 --- a/src/common/thread.h +++ b/src/common/thread.h | |||
| @@ -54,6 +54,10 @@ public: | |||
| 54 | is_set = false; | 54 | is_set = false; |
| 55 | } | 55 | } |
| 56 | 56 | ||
| 57 | [[nodiscard]] bool IsSet() { | ||
| 58 | return is_set; | ||
| 59 | } | ||
| 60 | |||
| 57 | private: | 61 | private: |
| 58 | std::condition_variable condvar; | 62 | std::condition_variable condvar; |
| 59 | std::mutex mutex; | 63 | std::mutex mutex; |