From 30a1be62b64b07d3e48eb35e95294859c42ae41f Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Wed, 4 Dec 2019 20:19:44 -0800 Subject: Added Allocator test, ring buffer test and RefCntAutoPtr test --- Common/interface/ThreadSignal.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Common/interface') 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 -- cgit v1.2.3