mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-26 21:00:34 +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;
|
||||
if (vispar.clipping.enable && clipsolution == 2)
|
||||
{
|
||||
// lock->UnLock();
|
||||
NgLock mlock (mesh->Mutex(), 0);
|
||||
mlock.UnLock();
|
||||
mesh->Mutex().unlock();
|
||||
mesh->BuildElementSearchTree();
|
||||
mlock.Lock();
|
||||
|
||||
// lock->Lock();
|
||||
mesh->Mutex().lock();
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user