Fix T103614: crash during geometry nodes evaluation with tbb disabled

This commit is contained in:
Jacques Lucke 2023-01-05 15:36:24 +01:00
parent 25e28f518c
commit 3819a9b15a
Notes: blender-bot 2024-03-25 12:30:38 +01:00
Referenced by issue #103614, Crash with TBB disabled in `lazy_threading::send_hint`
1 changed files with 6 additions and 0 deletions

View File

@ -1073,6 +1073,12 @@ class Executor {
bool try_enable_multi_threading()
{
#ifndef WITH_TBB
/* The non-tbb task pool has the property that it immediately executes tasks under some
* circumstances. This is not supported here because tasks might be scheduled while another
* node is in the middle of being executed on the same thread. */
return false;
#endif
if (this->use_multi_threading()) {
return true;
}