Remove unused QThreadPoolPrivate::startFrontRunnable().

Change-Id: Ie079aea3412a53cf9dccaa770fa64ff5b6b7b3b1
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
This commit is contained in:
Robin Burchell 2012-03-05 22:11:05 +01:00 committed by Qt by Nokia
parent ea6d1fde1b
commit eb150a51cd
2 changed files with 0 additions and 26 deletions

View File

@ -307,31 +307,6 @@ bool QThreadPoolPrivate::waitForDone(int msecs)
return queue.isEmpty() && activeThreads == 0;
}
/*! \internal
Pulls a runnable from the front queue and runs it in the current thread. Blocks
until the runnable has completed. Returns true if a runnable was found.
*/
bool QThreadPoolPrivate::startFrontRunnable()
{
QMutexLocker locker(&mutex);
if (queue.isEmpty())
return false;
QRunnable *runnable = queue.takeFirst().first;
const bool autoDelete = runnable->autoDelete();
bool del = autoDelete && !--runnable->ref;
locker.unlock();
runnable->run();
locker.relock();
if (del) {
delete runnable;
}
return true;
}
/*! \internal
Seaches for \a runnable in the queue, removes it from the queue and
runs it if found. This functon does not return until the runnable

View File

@ -83,7 +83,6 @@ public:
void startThread(QRunnable *runnable = 0);
void reset();
bool waitForDone(int msecs = -1);
bool startFrontRunnable();
void stealRunnable(QRunnable *);
mutable QMutex mutex;