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