mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-26 21:00:34 +05:00
Lock mesh in Mesh::Compress
This commit is contained in:
parent
9feb9de9b1
commit
7c88a6da76
@ -3257,6 +3257,8 @@ namespace netgen
|
||||
void Mesh :: Compress ()
|
||||
{
|
||||
static Timer t("Mesh::Compress"); RegionTimer reg(t);
|
||||
NgLock lock(mutex);
|
||||
lock.Lock();
|
||||
|
||||
NgArray<PointIndex,PointIndex::BASE,PointIndex> op2np(GetNP());
|
||||
NgArray<MeshPoint> hpoints;
|
||||
@ -3415,6 +3417,7 @@ namespace netgen
|
||||
|
||||
// FindOpenElements();
|
||||
timestamp = NextTimeStamp();
|
||||
lock.UnLock();
|
||||
}
|
||||
|
||||
void Mesh :: OrderElements()
|
||||
|
Loading…
Reference in New Issue
Block a user