gsl-shell.git - gsl-shell

index : gsl-shell.git
gsl-shell
summary refs log tree commit diff
path: root/agg-plot/lua-graph.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'agg-plot/lua-graph.cpp')
-rw-r--r--agg-plot/lua-graph.cpp 4
1 files changed, 4 insertions, 0 deletions
diff --git a/agg-plot/lua-graph.cpp b/agg-plot/lua-graph.cpp
index 609c9722..4be70d35 100644
--- a/agg-plot/lua-graph.cpp
+++ b/agg-plot/lua-graph.cpp
@@ -37,6 +37,8 @@ extern "C" {
static const struct luaL_Reg methods_dummy[] = {{NULL, NULL}};
+pthread_mutex_t agg_mutex[1];
+
void
graph_close_windows (lua_State *L)
{
@@ -46,6 +48,8 @@ graph_close_windows (lua_State *L)
void
register_graph (lua_State *L)
{
+ pthread_mutex_init (agg_mutex, NULL);
+
window_registry_prepare (L);
luaL_register (L, MLUA_GRAPHLIBNAME, methods_dummy);
generated by cgit v1.2.3 (git 2.39.1) at 2025年09月13日 10:29:48 +0000

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