diff options
author | Jacques Lucke <jacques@blender.org> | 2021-06-08 10:37:45 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2021-06-08 11:39:33 +0300 |
commit | ed1fc9d96bbac2ac3d4282400a9717e19e84211d (patch) | |
tree | 94892b3c1dd4a7be31124afa5084af4e165a97b6 /source/blender/blenkernel/intern/mesh_evaluate.c | |
parent | 496045fc30f72be8d2ca32394ed233266f043152 (diff) |
BLI: support disabling task isolation in task pool
Under some circumstances using task isolation can cause deadlocks.
Previously, our task pool implementation would run all tasks in an
isolated region. Now using task isolation is optional and can be
turned on/off for individual task pools.
Task pools that spawn new tasks recursively should never enable
task isolation. There is a new check that finds these cases at runtime.
Right now this check is disabled, so that this commit is a pure refactor.
It will be enabled in an upcoming commit.
This fixes T88598.
Differential Revision: https://developer.blender.org/D11415
Diffstat (limited to 'source/blender/blenkernel/intern/mesh_evaluate.c')
-rw-r--r-- | source/blender/blenkernel/intern/mesh_evaluate.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/mesh_evaluate.c b/source/blender/blenkernel/intern/mesh_evaluate.c index 616ec79c099..345546bc9cf 100644 --- a/source/blender/blenkernel/intern/mesh_evaluate.c +++ b/source/blender/blenkernel/intern/mesh_evaluate.c @@ -1715,7 +1715,8 @@ void BKE_mesh_normals_loop_split(const MVert *mverts, loop_split_generator(NULL, &common_data); } else { - TaskPool *task_pool = BLI_task_pool_create(&common_data, TASK_PRIORITY_HIGH); + TaskPool *task_pool = BLI_task_pool_create( + &common_data, TASK_PRIORITY_HIGH, TASK_ISOLATION_ON); loop_split_generator(task_pool, &common_data); |