From 86859c46451a0488c37513a722ef21a5e8dd4433 Mon Sep 17 00:00:00 2001 From: Matthias Hochsteger Date: Tue, 3 May 2016 14:59:08 +0200 Subject: [PATCH] fix bug which caused a mutex to unlock twice --- libsrc/visualization/vssolution.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/libsrc/visualization/vssolution.cpp b/libsrc/visualization/vssolution.cpp index 8a79a430..8b7371bb 100644 --- a/libsrc/visualization/vssolution.cpp +++ b/libsrc/visualization/vssolution.cpp @@ -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(); }