[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [48629] branches/soc-2011-tomato/source/ blender/imbuf/intern/colormanagement.c: Color management: do not initialize threads in case conversion
Sergey Sharybin
sergey.vfx at gmail.com
Thu Jul 5 11:40:53 CEST 2012
Revision: 48629
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=48629
Author: nazgul
Date: 2012-07-05 09:40:53 +0000 (Thu, 05 Jul 2012)
Log Message:
-----------
Color management: do not initialize threads in case conversion
happens in single thread only.
Modified Paths:
--------------
branches/soc-2011-tomato/source/blender/imbuf/intern/colormanagement.c
Modified: branches/soc-2011-tomato/source/blender/imbuf/intern/colormanagement.c
===================================================================
--- branches/soc-2011-tomato/source/blender/imbuf/intern/colormanagement.c 2012-07-05 09:39:06 UTC (rev 48628)
+++ branches/soc-2011-tomato/source/blender/imbuf/intern/colormanagement.c 2012-07-05 09:40:53 UTC (rev 48629)
@@ -622,7 +622,8 @@
int i, tot_thread = BLI_system_thread_count();
int start_line, tot_line;
- BLI_init_threads(&threads, do_thread, tot_thread);
+ if (tot_thread > 1)
+ BLI_init_threads(&threads, do_thread, tot_thread);
start_line = 0;
tot_line = ((float)(ibuf->y / tot_thread)) + 0.5f;
More information about the Bf-blender-cvs
mailing list