Commit cc28d9c4 authored by Kirill Terekhov's avatar Kirill Terekhov

critical section for private markers allocation

parent 8e8cd3b2
...@@ -295,12 +295,12 @@ namespace INMOST ...@@ -295,12 +295,12 @@ namespace INMOST
{ {
#pragma omp single #pragma omp single
{ {
tag_private_markers = new Tag[GetLocalProcessorNumber()]; tag_private_markers = new Tag[GetLocalProcessorNumber()];
} }
//#pragma omp ordered #pragma omp critical
{ {
std::stringstream name; std::stringstream name;
name << "PROTECTED_PRIVATE_MARKERS_" << GetLocalProcessorRank(); name << "PROTECTED_PRIVATE_MARKERS_" << GetLocalProcessorRank();
tag_private_markers[GetLocalProcessorRank()] = CreateTag(name.str(),DATA_BULK,CELL|FACE|EDGE|NODE|ESET|MESH,NONE,MarkerFieldsPrivate); tag_private_markers[GetLocalProcessorRank()] = CreateTag(name.str(),DATA_BULK,CELL|FACE|EDGE|NODE|ESET|MESH,NONE,MarkerFieldsPrivate);
} }
} }
......
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