gsl-shell.git - gsl-shell

index : gsl-shell.git
gsl-shell
summary refs log tree commit diff
path: root/agg-plot/lua-plot.cpp
diff options
context:
space:
mode:
authorFrancesco Abbate <francesco.bbt@gmail.com>2013年02月04日 14:25:52 +0100
committerFrancesco Abbate <francesco.bbt@gmail.com>2013年02月04日 21:30:49 +0100
commit4dce755427a8a4631a61bffe303abe4d2ebcda07 (patch)
tree3985644e26069db196f8f5b66d3c0e50ca97d449 /agg-plot/lua-plot.cpp
parent59929cbc7476647c1ee50489326156ef96b9d331 (diff)
downloadgsl-shell-4dce755427a8a4631a61bffe303abe4d2ebcda07.tar.gz
Add locks and update call in plot multi label function
Diffstat (limited to 'agg-plot/lua-plot.cpp')
-rw-r--r--agg-plot/lua-plot.cpp 5
1 files changed, 4 insertions, 1 deletions
diff --git a/agg-plot/lua-plot.cpp b/agg-plot/lua-plot.cpp
index 9afa4f28..6019551e 100644
--- a/agg-plot/lua-plot.cpp
+++ b/agg-plot/lua-plot.cpp
@@ -499,10 +499,13 @@ int plot_xaxis_hol_set (lua_State *L)
break;
}
+ AGG_LOCK();
hol->add(fl);
-
if (create_hol)
p->set_xaxis_hol(hol);
+ AGG_UNLOCK();
+
+ plot_update_raw (L, p, 1);
return 0;
}
generated by cgit v1.2.3 (git 2.25.1) at 2025年09月12日 17:26:45 +0000

AltStyle によって変換されたページ (->オリジナル) /