[gimp/gimp-2-10] Revert "app: disable parallel asynchronous operations when GEGL_THREADS=1"
- From: Ell <ell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/gimp-2-10] Revert "app: disable parallel asynchronous operations when GEGL_THREADS=1"
- Date: Thu, 20 Sep 2018 12:11:58 +0000 (UTC)
commit e1b85e1109dbb5bcf64295c5ee2167f7092b951c
Author: Ell <ell_se yahoo com>
Date: Thu Sep 20 08:10:47 2018 -0400
Revert "app: disable parallel asynchronous operations when GEGL_THREADS=1"
This reverts commit 1c435f313b18ad8b815e9ce8000cf0cfd42ea584, which
is no longer necessary after GEGL commit
c8a0b9eff07c8d9122f55f7b7527d51788ae4575.
app/core/gimp-parallel.cc | 10 ----------
1 file changed, 10 deletions(-)
---
diff --git a/app/core/gimp-parallel.cc b/app/core/gimp-parallel.cc
index 46bdfd5600..5ebad358ff 100644
--- a/app/core/gimp-parallel.cc
+++ b/app/core/gimp-parallel.cc
@@ -456,16 +456,6 @@ gimp_parallel_run_async_set_n_threads (gint n_threads)
{
gint i;
- /* FIXME: when the number of GEGL threads is 1, GEGL disables some thread-
- * safety mechanisms, such that, in particular, concurrent access to the same
- * buffer is not safe. ultimately, it should be possible to configure GEGL
- * to remain thread-safe independently of the number of threads it uses, but
- * for now, we simply disable parallel asynchronous operations when the
- * number of threads is 1.
- */
- if (n_threads == 1)
- n_threads = 0;
-
n_threads = CLAMP (n_threads, 0, GIMP_PARALLEL_RUN_ASYNC_MAX_THREADS);
if (n_threads > gimp_parallel_run_async_n_threads) /* need more threads */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]