fix bug which caused a mutex to unlock twice

This commit is contained in:
Matthias Hochsteger 2016-05-03 14:59:08 +02:00
parent e526085a86
commit 86859c4645

View File

@ -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();
}