From e81df263f4123a39fe6d4d50fb21f47dd242e796 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Thu, 20 Dec 2018 18:23:14 +0100 Subject: remove const correctness violations This is possibly related to a livelock where several threads do const removal in their respective code paths. Use the `mutable' specifier for the mutexes and spline's cached data. Now using the `mutable' specifier, get rid of in compat/mutex. --- logic/pipeline.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'logic/pipeline.hpp') diff --git a/logic/pipeline.hpp b/logic/pipeline.hpp index 9fdd6c32..a4dcb6b8 100644 --- a/logic/pipeline.hpp +++ b/logic/pipeline.hpp @@ -81,7 +81,7 @@ class OTR_LOGIC_EXPORT pipeline : private QThread { Q_OBJECT - QMutex mtx; + mutable QMutex mtx; main_settings s; Mappings& m; event_handler& ev; -- cgit v1.2.3