diff options
author | Kelebek1 <eeeedddccc@hotmail.co.uk> | 2022-07-27 22:31:41 +0100 |
---|---|---|
committer | Morph <39850852+Morph1984@users.noreply.github.com> | 2022-08-02 01:01:54 -0400 |
commit | 83a24ad638a2c3ff628fe109391586be9bd3a45d (patch) | |
tree | 3ac77d8c6876200075bd6c68eebc6f4098df1422 /src/common/thread.h | |
parent | 9d3b1904651321f44b8f801bc0452390afc16ffc (diff) |
Make coretiming waiting more accurate
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 1552f58e0f..e17a7850fe 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; |