summaryrefslogtreecommitdiffstats
path: root/src/common/thread.h
diff options
context:
space:
mode:
authorKelebek1 <eeeedddccc@hotmail.co.uk>2022-07-27 23:31:41 +0200
committerMorph <39850852+Morph1984@users.noreply.github.com>2022-08-02 07:01:54 +0200
commit83a24ad638a2c3ff628fe109391586be9bd3a45d (patch)
tree3ac77d8c6876200075bd6c68eebc6f4098df1422 /src/common/thread.h
parentRework multi-core vsync (diff)
downloadyuzu-83a24ad638a2c3ff628fe109391586be9bd3a45d.tar
yuzu-83a24ad638a2c3ff628fe109391586be9bd3a45d.tar.gz
yuzu-83a24ad638a2c3ff628fe109391586be9bd3a45d.tar.bz2
yuzu-83a24ad638a2c3ff628fe109391586be9bd3a45d.tar.lz
yuzu-83a24ad638a2c3ff628fe109391586be9bd3a45d.tar.xz
yuzu-83a24ad638a2c3ff628fe109391586be9bd3a45d.tar.zst
yuzu-83a24ad638a2c3ff628fe109391586be9bd3a45d.zip
Diffstat (limited to 'src/common/thread.h')
-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;