Blender Git Loki

Git Commits -> Revision b67423f

Revision b67423f by Jacques Lucke (master)
May 26, 2021, 12:19 (GMT)
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

Commit Details:

Full Hash: b67423f80663990f972f4317d38b8e7662b9e8eb
Parent Commit: afec66c
Lines Changed: +14, -23

2 Modified Paths:

/source/blender/blenkernel/BKE_node_ui_storage.hh (+1, -9) (Diff)
/source/blender/blenkernel/intern/node_ui_storage.cc (+13, -14) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021