summaryrefslogtreecommitdiff
path: root/sci-libs/mathgl/files/mathgl-2.4.1-mutex.patch
diff options
context:
space:
mode:
Diffstat (limited to 'sci-libs/mathgl/files/mathgl-2.4.1-mutex.patch')
-rw-r--r--sci-libs/mathgl/files/mathgl-2.4.1-mutex.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/sci-libs/mathgl/files/mathgl-2.4.1-mutex.patch b/sci-libs/mathgl/files/mathgl-2.4.1-mutex.patch
new file mode 100644
index 000000000000..4ce7bb733114
--- /dev/null
+++ b/sci-libs/mathgl/files/mathgl-2.4.1-mutex.patch
@@ -0,0 +1,16 @@
+diff --git a/src/canvas.cpp b/src/canvas.cpp
+index ba4ffededb9b..7ea755d18265 100644
+--- a/src/canvas.cpp
++++ b/src/canvas.cpp
+@@ -1219,9 +1219,9 @@ void mglCanvas::Pop()
+ {
+ B = stack.back();
+ #if MGL_HAVE_PTHREAD
+- pthread_mutex_lock(&m);
++ pthread_mutex_lock(&mutexStk);
+ stack.pop_back();
+- pthread_mutex_unlock(&m);
++ pthread_mutex_unlock(&mutexStk);
+ #else
+ #pragma omp critical(stk)
+ stack.pop_back();