summaryrefslogtreecommitdiffstats
path: root/Common/interface
diff options
context:
space:
mode:
Diffstat (limited to 'Common/interface')
-rw-r--r--Common/interface/ThreadSignal.h2
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