1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-29 11:18:56 -05:00

glScope: set all try locks to zero timeout

This commit is contained in:
f4exb 2018-11-21 00:50:01 +01:00
parent c1511d255e
commit 635a1bd34b

View File

@ -103,7 +103,7 @@ void GLScope::newTraces(std::vector<float *>* 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<float *>* 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;
}