From ae75456d5b2d098d2da97aa79d0c91667095543c Mon Sep 17 00:00:00 2001 From: Francesco Abbate Date: 2012年4月20日 17:01:49 +0200 Subject: TEMP: implement incremental draw / really bugged --- agg-plot/lua-graph.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'agg-plot/lua-graph.cpp') 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); -- cgit v1.2.3

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