gsl-shell.git - gsl-shell

index : gsl-shell.git
gsl-shell
summary refs log tree commit diff
path: root/agg-plot/canvas-window.cpp
diff options
context:
space:
mode:
authorfrancesco-ST <francesco.abbate@st.com>2011年02月03日 15:56:02 +0100
committerfrancesco-ST <francesco.abbate@st.com>2011年02月03日 15:56:02 +0100
commitf9f49265522fe933fd6ca726ecd23bf33c9aae09 (patch)
tree59a12e3870bca9379cd99adf673ce0aa6536656e /agg-plot/canvas-window.cpp
parent9cd1461d668ec3c38700a5a88fc9bd1fd9b79cc3 (diff)
downloadgsl-shell-f9f49265522fe933fd6ca726ecd23bf33c9aae09.tar.gz
Introduced window registry and changed win/plot weak table to ordinary.
Now the table that store the window <-> plot relations is no more weak on the keys (windows). The windows are removed from the table when the event loop thread of the windows terminates. In this way we don't depend on the GC and we avoid the problems with delayed removal of the keys.
Diffstat (limited to 'agg-plot/canvas-window.cpp')
-rw-r--r--agg-plot/canvas-window.cpp 4
1 files changed, 2 insertions, 2 deletions
diff --git a/agg-plot/canvas-window.cpp b/agg-plot/canvas-window.cpp
index f5a1bdaf..ddc18fa9 100644
--- a/agg-plot/canvas-window.cpp
+++ b/agg-plot/canvas-window.cpp
@@ -25,7 +25,7 @@
#include "agg-parse-trans.h"
#include "lua-cpp-utils.h"
#include "lua-utils.h"
-#include "object-index.h"
+#include "window_registry.h"
#include "lua-draw.h"
#include "gs-types.h"
#include "colors.h"
@@ -109,7 +109,7 @@ canvas_thread_function (void *_inf)
win->unlock();
GSL_SHELL_LOCK();
- object_index_remove (inf->L, inf->window_id);
+ window_index_remove (inf->L, inf->window_id);
GSL_SHELL_UNLOCK();
return NULL;
generated by cgit v1.2.3 (git 2.25.1) at 2025年09月14日 01:36:32 +0000

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