author | Francesco Abbate <francesco.bbt@gmail.com> | 2012年04月20日 17:01:49 +0200 |
---|---|---|
committer | Francesco Abbate <francesco.bbt@gmail.com> | 2012年04月20日 17:01:49 +0200 |
commit | ae75456d5b2d098d2da97aa79d0c91667095543c (patch) | |
tree | ad0d325b31794d69cbbc0413cf98a6305b3b9eb2 /agg-plot/lua-graph.cpp | |
parent | 10cfdf7af613c1355135b00d930657453ade4ce4 (diff) | |
download | gsl-shell-ae75456d5b2d098d2da97aa79d0c91667095543c.tar.gz |
-rw-r--r-- | agg-plot/lua-graph.cpp | 4 |
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); |