Skip to content
Permalink
Browse files

remove unlock from terminated/completed

  • Loading branch information
troopa81 authored and nyalldawson committed Feb 12, 2020
1 parent e91cac0 commit 722a41e02732aea1d499830d3a2033f9296e73f8
Showing with 1 addition and 3 deletions.
  1. +1 −3 src/core/qgstaskmanager.cpp
@@ -58,7 +58,7 @@ qint64 QgsTask::elapsedTime() const

void QgsTask::start()
{
mNotFinishedMutex.lock();
QMutexLocker locker( &mNotFinishedMutex );
mNotStartedMutex.release();
mStartCount++;
Q_ASSERT( mStartCount == 1 );
@@ -256,7 +256,6 @@ void QgsTask::completed()
{
mStatus = Complete;
QMetaObject::invokeMethod( this, &QgsTask::processSubTasksForCompletion, Qt::AutoConnection );
mNotFinishedMutex.unlock();
}

void QgsTask::processSubTasksForCompletion()
@@ -343,7 +342,6 @@ void QgsTask::terminated()
{
mStatus = Terminated;
QMetaObject::invokeMethod( this, &QgsTask::processSubTasksForTermination, Qt::AutoConnection );
mNotFinishedMutex.unlock();
}


0 comments on commit 722a41e

Please sign in to comment.
You can’t perform that action at this time.