diff options
author | Jacques Lucke <jacques@blender.org> | 2021-05-26 15:19:01 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2021-05-26 15:19:01 +0300 |
commit | b67423f80663990f972f4317d38b8e7662b9e8eb (patch) | |
tree | 7b682f45fbfdb96517d14632ce594c108ebcf87a /source/blender/editors/gpencil/gpencil_intern.h | |
parent | afec66c024dc2b75447537d45406c06342ec201e (diff) |
Nodes: fix threading issues with node ui storage
Calling BKE_nodetree_attribute_hint_add from multiple threads still
was not safe before..
One issue was that context_map embedded its values directly. So
when context_map grows, all NodeUIStorage would move as well.
I could patch around that by using std::unique_ptr in a few places,
but that just becomes too complex for now.
Instead I simplified the locking a bit by adding just locking a mutex
in NodeTreeUIStorage all the time while an attribute hint is added.
Differential Revision: https://developer.blender.org/D11399
Diffstat (limited to 'source/blender/editors/gpencil/gpencil_intern.h')
0 files changed, 0 insertions, 0 deletions