diff options
| author | Egor Yusov <egor.yusov@gmail.com> | 2019-12-05 04:19:44 +0000 |
|---|---|---|
| committer | Egor Yusov <egor.yusov@gmail.com> | 2019-12-05 04:19:44 +0000 |
| commit | 30a1be62b64b07d3e48eb35e95294859c42ae41f (patch) | |
| tree | 8550cd0a698469a388075ffaa814d43ab865b538 /Common/interface | |
| parent | appveyor: fixed run test instruction (diff) | |
| download | DiligentCore-30a1be62b64b07d3e48eb35e95294859c42ae41f.tar.gz DiligentCore-30a1be62b64b07d3e48eb35e95294859c42ae41f.zip | |
Added Allocator test, ring buffer test and RefCntAutoPtr test
Diffstat (limited to 'Common/interface')
| -rw-r--r-- | Common/interface/ThreadSignal.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Common/interface/ThreadSignal.h b/Common/interface/ThreadSignal.h index 9060759e..a2a48cd8 100644 --- a/Common/interface/ThreadSignal.h +++ b/Common/interface/ThreadSignal.h @@ -44,6 +44,8 @@ public: // http://en.cppreference.com/w/cpp/thread/condition_variable void Trigger(bool NotifyAll = false, int SignalValue = 1) { + VERIFY(SignalValue != 0, "Signal value must not be zero"); + // The thread that intends to modify the variable has to // * acquire a std::mutex (typically via std::lock_guard) // * perform the modification while the lock is held |
