mirror of
https://github.com/NGSolve/netgen.git
synced 2025-04-13 08:37:28 +05:00
fix bug which caused a mutex to unlock twice
This commit is contained in:
parent
e526085a86
commit
86859c4645
@ -837,13 +837,9 @@ namespace netgen
|
|||||||
// cout << "clipsolution = " << clipsolution << endl;
|
// cout << "clipsolution = " << clipsolution << endl;
|
||||||
if (vispar.clipping.enable && clipsolution == 2)
|
if (vispar.clipping.enable && clipsolution == 2)
|
||||||
{
|
{
|
||||||
// lock->UnLock();
|
mesh->Mutex().unlock();
|
||||||
NgLock mlock (mesh->Mutex(), 0);
|
|
||||||
mlock.UnLock();
|
|
||||||
mesh->BuildElementSearchTree();
|
mesh->BuildElementSearchTree();
|
||||||
mlock.Lock();
|
mesh->Mutex().lock();
|
||||||
|
|
||||||
// lock->Lock();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user