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 | 992af57f8de84d034ad97787cf72dfbf8b0911b7 (patch) | |
| tree | 3ac77d8c6876200075bd6c68eebc6f4098df1422 /src/common/thread.h | |
| parent | ea06b32a002fd7959806870b987578428f8bdcee (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; |
