From afa3ea3c7c3f2f11aef76d3e6d442232fd1dbee8 Mon Sep 17 00:00:00 2001 From: Oliver Duis Date: Fri, 1 Jul 2011 21:32:05 +0200 Subject: [PATCH] Fixed occasional hang when using batch queue on Windows (finally) --- rtgui/batchqueue.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/rtgui/batchqueue.cc b/rtgui/batchqueue.cc index f31b00c9e..cfafea3cc 100644 --- a/rtgui/batchqueue.cc +++ b/rtgui/batchqueue.cc @@ -321,6 +321,7 @@ void BatchQueue::startProcessing () { #ifdef WIN32 entryMutex.lock(); #endif + if (!processing && fd.size()>0) { BatchQueueEntry* next = (BatchQueueEntry*)fd[0]; // tag it as processing @@ -344,6 +345,11 @@ void BatchQueue::startProcessing () { // start batch processing rtengine::startBatchProcessing (next->job, this, options.tunnelMetaData); queue_draw (); + } else { + // TODO: Check for Linux + #ifdef WIN32 + entryMutex.unlock(); + #endif } }