app: fix gimp-parallel shutdown

Some leftover from an earlier version.  Caused gimp_parallel_exit()
to hang, although we could only notice that in GIMP_UNSTABLE
builds.
This commit is contained in:
Ell 2018-05-13 11:50:33 -04:00
parent 660926eb3d
commit 4c767b4f03
1 changed files with 2 additions and 5 deletions

View File

@ -97,7 +97,6 @@ static GimpParallelRunAsyncThread gimp_parallel_run_async_threads[GIMP_PARALLE
static GMutex gimp_parallel_run_async_mutex;
static GCond gimp_parallel_run_async_cond;
static GQueue gimp_parallel_run_async_queue = G_QUEUE_INIT;
static gboolean gimp_parallel_run_async_quit;
static gint gimp_parallel_distribute_n_threads = 1;
static GimpParallelDistributeThread gimp_parallel_distribute_threads[GIMP_PARALLEL_DISTRIBUTE_MAX_THREADS - 1];
@ -403,10 +402,8 @@ gimp_parallel_run_async_thread_func (GimpParallelRunAsyncThread *thread)
{
GimpParallelRunAsyncTask *task;
if (gimp_parallel_run_async_quit)
{
break;
}
if (thread->quit)
break;
while ((task = (GimpParallelRunAsyncTask *) g_queue_pop_head (&gimp_parallel_run_async_queue)))
{