[Bf-blender-cvs] [e5aaa9d] master: Code cleanup: no need to switch to threaded alloc, it's done by task pool

Sergey Sharybin noreply at git.blender.org
Wed Dec 25 15:36:56 CET 2013


Commit: e5aaa9d38769187757a34cd6eda8b6c61dbf6c16
Author: Sergey Sharybin
Date:   Wed Dec 25 20:34:58 2013 +0600
https://developer.blender.org/rBe5aaa9d38769187757a34cd6eda8b6c61dbf6c16

Code cleanup: no need to switch to threaded alloc, it's done by task pool

===================================================================

M	source/blender/editors/mask/mask_draw.c

===================================================================

diff --git a/source/blender/editors/mask/mask_draw.c b/source/blender/editors/mask/mask_draw.c
index 6b60e5e..4cf4cd1 100644
--- a/source/blender/editors/mask/mask_draw.c
+++ b/source/blender/editors/mask/mask_draw.c
@@ -590,8 +590,6 @@ static float *threaded_mask_rasterize(Mask *mask, const int width, const int hei
 
 	task_pool = BLI_task_pool_create(task_scheduler, &state);
 
-	BLI_begin_threaded_malloc();
-
 	scanlines_per_thread = height / num_threads;
 	for (i = 0; i < num_threads; i++) {
 		ThreadedMaskRasterizeData *data = MEM_mallocN(sizeof(ThreadedMaskRasterizeData),
@@ -614,7 +612,6 @@ static float *threaded_mask_rasterize(Mask *mask, const int width, const int hei
 
 	/* Free memory. */
 	BLI_task_pool_free(task_pool);
-	BLI_end_threaded_malloc();
 	BKE_maskrasterize_handle_free(handle);
 
 	return buffer;




More information about the Bf-blender-cvs mailing list