diff options
author | Robert C. Helling <helling@atdotde.de> | 2017-11-27 17:36:21 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-12-01 15:47:51 -0800 |
commit | a9703628c4c4d3b1226d4ea86b3079718940e14e (patch) | |
tree | c008eb9c45ef2b02425c086b39877d35cc34ec5f /core/planner.c | |
parent | f159792b8050bb6d07dbf29c525dc5e86da2688b (diff) | |
download | subsurface-a9703628c4c4d3b1226d4ea86b3079718940e14e.tar.gz |
Actually compute variations in background
This reenables the computation of plan variations but now in a separate
thread. Once finieshed, a signal is sent to update the notes.
Signed-off-by: Robert C. Helling <helling@atdotde.de>
Diffstat (limited to 'core/planner.c')
-rw-r--r-- | core/planner.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/core/planner.c b/core/planner.c index 9c1ae2e6c..8fb03015b 100644 --- a/core/planner.c +++ b/core/planner.c @@ -688,7 +688,6 @@ bool plan(struct deco_state *ds, struct diveplan *diveplan, struct dive *dive, i int decostopcounter = 0; set_gf(diveplan->gflow, diveplan->gfhigh); - lock_planner(); set_vpmb_conservatism(diveplan->vpmb_conservatism); if (!diveplan->surface_pressure) diveplan->surface_pressure = SURFACE_PRESSURE; @@ -733,7 +732,6 @@ bool plan(struct deco_state *ds, struct diveplan *diveplan, struct dive *dive, i transitiontime = depth / 75; /* this still needs to be made configurable */ plan_add_segment(diveplan, transitiontime, 0, current_cylinder, po2, false); create_dive_from_plan(diveplan, dive, is_planner); - unlock_planner(); return false; } @@ -820,7 +818,6 @@ bool plan(struct deco_state *ds, struct diveplan *diveplan, struct dive *dive, i free(stoplevels); free(gaschanges); - unlock_planner(); return false; } @@ -1084,7 +1081,6 @@ bool plan(struct deco_state *ds, struct diveplan *diveplan, struct dive *dive, i free(stoplevels); free(gaschanges); free(bottom_cache); - unlock_planner(); return decodive; } |