diff options
| author | 2022-09-17 11:10:54 -0700 | |
|---|---|---|
| committer | 2022-09-17 11:10:54 -0700 | |
| commit | 9c32f29af18f5412ea4ba9f15fe0da3805e0d858 (patch) | |
| tree | 63f5b2a5b5ad49179067d01e34c11fb2a7510bd8 /src/common/thread.h | |
| parent | Merge pull request #8914 from lioncash/audio-const (diff) | |
| parent | core_timing: Sleep in discrete intervals, yield during spin (diff) | |
| download | yuzu-9c32f29af18f5412ea4ba9f15fe0da3805e0d858.tar.gz yuzu-9c32f29af18f5412ea4ba9f15fe0da3805e0d858.tar.xz yuzu-9c32f29af18f5412ea4ba9f15fe0da3805e0d858.zip | |
Merge pull request #8650 from Kelebek1/vsync
[Coretiming/NVNFlinger] Improve multi-core vsync timing, and core timing accuracy
Diffstat (limited to 'src/common/thread.h')
| -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; |