Navigation
API > API/Runtime > API/Runtime/GeometryCore > API/Runtime/GeometryCore/Spatial > API/Runtime/GeometryCore/Spatial/TBlockedGrid3 > API/Runtime/GeometryCore/Spatial/TBlockedGrid3/ProcessValueWithLock
References
| Module | GeometryCore |
| Header | /Engine/Source/Runtime/GeometryCore/Public/Spatial/BlockedDenseGrid3.h |
| Include | #include "Spatial/BlockedDenseGrid3.h" |
template<typename ProcessFunc, typename CriticalSectionProviderType>
void ProcessValueWithLock
(
const FVector3i & CellIJK,
ProcessFunc Func,
CriticalSectionProviderType CriticalSectionProvider
)
Remarks
Call an external lambda with a reference to the grid value at CellIJK. Called as Func(ElemType&), so the caller can both read and write the grid cell
note: if doing pure reads prefer the GetValue() methods because the ProcessValue method will allocate the underlying data block.