diff options
author | Robert C. Helling <helling@atdotde.de> | 2017-11-22 20:42:33 +0100 |
---|---|---|
committer | Robert C. Helling <helling@atdotde.de> | 2017-11-25 20:13:01 +0100 |
commit | 8e21a65653514d9340ef45c9b9c53dfe5d280350 (patch) | |
tree | 2ada40567e25bc45035698748f368127b1cca199 /core/qthelper.h | |
parent | a9ceecc2e3646432d6688d04b592c48f9c63ae65 (diff) | |
download | subsurface-8e21a65653514d9340ef45c9b9c53dfe5d280350.tar.gz |
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 <helling@atdotde.de>
Diffstat (limited to 'core/qthelper.h')
-rw-r--r-- | core/qthelper.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/qthelper.h b/core/qthelper.h index ac91fbc1e..d23695f7f 100644 --- a/core/qthelper.h +++ b/core/qthelper.h @@ -52,5 +52,6 @@ extern "C" int parse_seabear_header(const char *filename, char **params, int pnr enum inertgas {N2, HE}; extern "C" double cache_value(int tissue, int timestep, enum inertgas gas); extern "C" void cache_insert(int tissue, int timestep, enum inertgas gas, double value); - +extern "C" void lock_planner(); +extern "C" void unlock_planner(); #endif // QTHELPER_H |