From 8e21a65653514d9340ef45c9b9c53dfe5d280350 Mon Sep 17 00:00:00 2001 From: "Robert C. Helling" Date: Wed, 22 Nov 2017 20:42:33 +0100 Subject: Localize global planner state For UI responsiveness, we need to be able to run the planner in the background. This needs the planner state to be localized (and we need to pass a pointer around). In order to not let too many lines overrun (and to save typing in the future) I have renamed instances of struct deco_state to ds. Yes this should have gone to a separate commit but I accidentally commit --amend'ed it. Computing of planner variations is temporarily disabled. Unlock the planner when returning early So we don't deadlock in add dive and recreational mode (which use the planner without actually planning). Signed-off-by: Robert C. Helling --- qt-models/diveplotdatamodel.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'qt-models/diveplotdatamodel.h') diff --git a/qt-models/diveplotdatamodel.h b/qt-models/diveplotdatamodel.h index b28dce685..4e0c63c2e 100644 --- a/qt-models/diveplotdatamodel.h +++ b/qt-models/diveplotdatamodel.h @@ -5,6 +5,7 @@ #include #include "core/display.h" +#include "core/dive.h" struct dive; struct plot_data; @@ -91,6 +92,7 @@ private: struct plot_info pInfo; int diveId; unsigned int dcNr; + struct deco_state plot_deco_state; }; #endif // DIVEPLOTDATAMODEL_H -- cgit v1.2.3-70-g09d2