author | francesco-ST <francesco.abbate@st.com> | 2010年08月04日 10:13:57 +0200 |
---|---|---|
committer | francesco-ST <francesco.abbate@st.com> | 2010年08月04日 10:13:57 +0200 |
commit | f145fa7be5615ac2ffc15f5859e1c9290ba5b9e3 (patch) | |
tree | f1d679cf2b3cbdc5db7917a061c586a390b76af1 /agg-plot/canvas-window.cpp | |
parent | 0cd57d184f81a95d54150b745c9081d6e318cccb (diff) | |
download | gsl-shell-f145fa7be5615ac2ffc15f5859e1c9290ba5b9e3.tar.gz |
-rw-r--r-- | agg-plot/canvas-window.cpp | 5 |
diff --git a/agg-plot/canvas-window.cpp b/agg-plot/canvas-window.cpp index 98d9f7e6..927a69e7 100644 --- a/agg-plot/canvas-window.cpp +++ b/agg-plot/canvas-window.cpp @@ -31,6 +31,7 @@ extern "C" { #include "agg-parse-trans.h" #include "lua-cpp-utils.h" #include "lua-utils.h" +#include "window-refs.h" #include "lua-draw.h" #include "gs-types.h" #include "colors.h" @@ -107,7 +108,7 @@ canvas_window::start_new_thread (lua_State *L) if (status != not_ready && status != closed) return; - this->id = mlua_window_ref(L, lua_gettop (L)); + this->id = window_ref_add (L, lua_gettop (L)); pthread_attr_t attr[1]; pthread_t win_thread[1]; @@ -119,7 +120,7 @@ canvas_window::start_new_thread (lua_State *L) if (pthread_create(win_thread, attr, canvas_thread_function, (void*) this)) { - mlua_window_unref(L, this->id); + window_ref_remove (L, this->id); pthread_attr_destroy (attr); this->status = canvas_window::error; |