Fix T103614: crash during geometry nodes evaluation with tbb disabled
This commit is contained in:
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`
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue