Commit 96d53c87 authored by Nghia Truong's avatar Nghia Truong
Browse files

BUG: Work around a deadlock bug in MSVC2013

parent 352051e7
......@@ -64,6 +64,9 @@ void GridBasedNeighborSearch::getNeighbors(std::vector<std::vector<size_t>>& res
[&](const size_t cellIdx)
{
m_Grid.getCellData(cellIdx).particleIndices.resize(0);
// This line is not logically necessary, but it is needed due to a bug in MSVC
m_Grid.getCellData(cellIdx).lock.unlock();
});
// collect particle indices of points in setB into their corresponding cells
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment