[gimp] Revert "app: disable parallel asynchronous operations when GEGL_THREADS=1"



commit a1b08a503d44a76f4a8ef5e87aa42ec94d9105da
Author: Ell <ell_se yahoo com>
Date:   Thu Sep 20 08:06:56 2018 -0400

    Revert "app: disable parallel asynchronous operations when GEGL_THREADS=1"
    
    This reverts commit 408540659f215785fd6c01ead54d134bffaf167e, 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]