changed window closing unref main lock strategy - gsl-shell.git - gsl-shell

index : gsl-shell.git
gsl-shell
summary refs log tree commit diff
path: root/object-index.h
diff options
context:
space:
mode:
authorfrancesco-ST <francesco.abbate@st.com>2010年12月28日 16:52:42 +0100
committerfrancesco-ST <francesco.abbate@st.com>2010年12月28日 16:52:42 +0100
commitab7fc91161b8cb493b418bfdd2871e45c4537a26 (patch)
treeea400f746489d587d153f0b6b6677c6a17bf916f /object-index.h
parent978986bb98f1ae622be3f430f4e729fbb598afb8 (diff)
downloadgsl-shell-ab7fc91161b8cb493b418bfdd2871e45c4537a26.tar.gz
changed window closing unref main lock strategy
A global lock is used now to guard the main loop. The plot windows directly unrefs the window by just waiting the main lock. Simplified also the window index code since plot are not indexed since many versions now. The windows are not explicitely closed when the main loop terminates.
Diffstat (limited to 'object-index.h')
-rw-r--r--object-index.h 19
1 files changed, 5 insertions, 14 deletions
diff --git a/object-index.h b/object-index.h
index dd19c3f6..a2bc0a73 100644
--- a/object-index.h
+++ b/object-index.h
@@ -7,21 +7,12 @@ __BEGIN_DECLS
#include "lua.h"
-/* We have currently just one class of objects that have a unique ID, windows.
- At some moments during development this machinary was also used for plots.
- Because we have just one object type that get an id the code could be
- potentially simplified. */
-enum object_class_e {
- OBJECT_WINDOW = 0,
- /* OBJECT_PLOT, */
-};
-
extern void object_index_prepare (lua_State *L);
-extern int object_index_add (lua_State *L, int obj_class, int index);
-extern void object_index_get (lua_State *L, int obj_class, int id);
-extern void object_index_remove (lua_State *L, int obj_class, int id);
-extern void object_index_apply_all (lua_State *L, int obj_class, lua_CFunction f);
-extern int object_index_count (lua_State *L, int obj_class);
+extern int object_index_add (lua_State *L, int index);
+extern void object_index_get (lua_State *L, int id);
+extern void object_index_remove (lua_State *L, int id);
+extern void object_index_apply_all (lua_State *L, lua_CFunction f);
+extern int object_index_count (lua_State *L);
__END_DECLS
generated by cgit v1.2.3 (git 2.39.1) at 2025年09月30日 14:25:30 +0000

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