From 635a1bd34b2ac180643c6e6bcff3dfd9ac9a5ed9 Mon Sep 17 00:00:00 2001 From: f4exb Date: Wed, 21 Nov 2018 00:50:01 +0100 Subject: [PATCH] glScope: set all try locks to zero timeout --- sdrgui/gui/glscope.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sdrgui/gui/glscope.cpp b/sdrgui/gui/glscope.cpp index 6cb63c444..87e375866 100644 --- a/sdrgui/gui/glscope.cpp +++ b/sdrgui/gui/glscope.cpp @@ -103,7 +103,7 @@ void GLScope::newTraces(std::vector* traces) { if (traces->size() > 0) { - if (!m_mutex.tryLock(2)) { + if (!m_mutex.tryLock(0)) { return; } @@ -119,7 +119,7 @@ void GLScope::newTraces(std::vector* traces, int traceIndex) { if (traces->size() > 0) { - if(!m_mutex.tryLock(2)) { + if(!m_mutex.tryLock(0)) { return; } @@ -197,7 +197,7 @@ void GLScope::resizeGL(int width, int height) void GLScope::paintGL() { - if (!m_mutex.tryLock(2)) { + if (!m_mutex.tryLock(0)) { return; }