diff options
author | Robert C. Helling <helling@atdotde.de> | 2017-08-29 11:41:30 +0200 |
---|---|---|
committer | Robert C. Helling <helling@atdotde.de> | 2017-11-25 20:13:01 +0100 |
commit | a9ceecc2e3646432d6688d04b592c48f9c63ae65 (patch) | |
tree | b568677f20ab7be870f5e0ada75fc6e5cb11fe51 /core/profile.c | |
parent | be6b50fce403ab6fd7d9b99167f57e4aa31d2a77 (diff) | |
download | subsurface-a9ceecc2e3646432d6688d04b592c48f9c63ae65.tar.gz |
Run variations calculation in background
but there are still side effects and thus it crashes.
Signed-off-by: Robert C. Helling <helling@atdotde.de>
Diffstat (limited to 'core/profile.c')
-rw-r--r-- | core/profile.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/profile.c b/core/profile.c index 6fafb3017..697ebe1c0 100644 --- a/core/profile.c +++ b/core/profile.c @@ -990,6 +990,7 @@ void calculate_deco_information(struct dive *dive, struct divecomputer *dc, stru if (!in_planner()) deco_state->deco_time = 0; struct deco_state *cache_data_initial = NULL; + lock_planner(); /* For VPM-B outside the planner, cache the initial deco state for CVA iterations */ if (decoMode() == VPMB) { cache_deco_state(&cache_data_initial); @@ -1135,6 +1136,7 @@ void calculate_deco_information(struct dive *dive, struct divecomputer *dc, stru #if DECO_CALC_DEBUG & 1 dump_tissues(); #endif + unlock_planner(); } #endif |