#3253 OpenMP : Give name to all critical sections

This commit is contained in:
Magne Sjaastad
2018-08-27 08:42:33 +02:00
parent 9529142a30
commit 9e3a100bcc
8 changed files with 35 additions and 31 deletions

View File

@@ -123,7 +123,7 @@ void RivNNCGeometryGenerator::computeArrays()
{
vx2 = vx3;
vx3 = cvf::Vec3f( conn.m_polygon[vxIdx] - offset);
#pragma omp critical
#pragma omp critical(critical_section_RivNNCGeometryGenerator_computeArrays)
{
vertices.push_back(vx1);
vertices.push_back(vx2);