summaryrefslogtreecommitdiffstats
path: root/src/common/thread.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2022-09-17 20:10:54 +0200
committerGitHub <noreply@github.com>2022-09-17 20:10:54 +0200
commit9c32f29af18f5412ea4ba9f15fe0da3805e0d858 (patch)
tree63f5b2a5b5ad49179067d01e34c11fb2a7510bd8 /src/common/thread.h
parentMerge pull request #8914 from lioncash/audio-const (diff)
parentcore_timing: Sleep in discrete intervals, yield during spin (diff)
downloadyuzu-9c32f29af18f5412ea4ba9f15fe0da3805e0d858.tar
yuzu-9c32f29af18f5412ea4ba9f15fe0da3805e0d858.tar.gz
yuzu-9c32f29af18f5412ea4ba9f15fe0da3805e0d858.tar.bz2
yuzu-9c32f29af18f5412ea4ba9f15fe0da3805e0d858.tar.lz
yuzu-9c32f29af18f5412ea4ba9f15fe0da3805e0d858.tar.xz
yuzu-9c32f29af18f5412ea4ba9f15fe0da3805e0d858.tar.zst
yuzu-9c32f29af18f5412ea4ba9f15fe0da3805e0d858.zip
Diffstat (limited to '')
-rw-r--r--src/common/thread.h4
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:
is_set = false;
}
+ [[nodiscard]] bool IsSet() {
+ return is_set;
+ }
+
private:
std::condition_variable condvar;
std::mutex mutex;