[gimp/gimp-2-10] app: fix indepndent-async thread priority on Windows
- From: Ell <ell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/gimp-2-10] app: fix indepndent-async thread priority on Windows
- Date: Wed, 6 Mar 2019 05:08:38 +0000 (UTC)
commit cd159e4bd4c25a5b062fc37c3685dd611ee8933f
Author: Ell <ell_se yahoo com>
Date: Wed Mar 6 00:06:42 2019 -0500
app: fix indepndent-async thread priority on Windows
Positive and negative priorities got swapped...
(cherry picked from commit 190095c97b35b11cffe040b67ea98a6f2fbe2517)
app/core/gimp-parallel.cc | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/app/core/gimp-parallel.cc b/app/core/gimp-parallel.cc
index aca95fe9a3..ca00f8b01d 100644
--- a/app/core/gimp-parallel.cc
+++ b/app/core/gimp-parallel.cc
@@ -218,11 +218,11 @@ gimp_parallel_run_async_independent_full (gint priority,
#if defined (G_OS_WIN32)
if (task->priority < 0)
{
- SetThreadPriority (GetCurrentThread (), THREAD_MODE_BACKGROUND_BEGIN);
+ SetThreadPriority (GetCurrentThread (), THREAD_MODE_ABOVE_NORMAL);
}
else if (task->priority > 0)
{
- SetThreadPriority (GetCurrentThread (), THREAD_MODE_ABOVE_NORMAL);
+ SetThreadPriority (GetCurrentThread (), THREAD_MODE_BACKGROUND_BEGIN);
}
#elif defined (HAVE_UNISTD_H) && defined (__gnu_linux__)
if (task->priority)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]