fix in the lock/unlock of drawing methods - 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>2010年07月22日 13:52:07 +0200
committerfrancesco-ST <francesco.abbate@st.com>2010年07月22日 13:52:07 +0200
commit741a111b1a6bb1d200f4c7aa4a02370d3acc25ea (patch)
treed6065d7ef54303b2fb638bc3e71cc37503d8ac32 /agg-plot/canvas-window.cpp
parentc0c3170a5505e6a96e66ac64138f1c81654f2a6f (diff)
downloadgsl-shell-741a111b1a6bb1d200f4c7aa4a02370d3acc25ea.tar.gz
fix in the lock/unlock of drawing methods
Diffstat (limited to 'agg-plot/canvas-window.cpp')
-rw-r--r--agg-plot/canvas-window.cpp 18
1 files changed, 17 insertions, 1 deletions
diff --git a/agg-plot/canvas-window.cpp b/agg-plot/canvas-window.cpp
index 0130e30a..eec93f59 100644
--- a/agg-plot/canvas-window.cpp
+++ b/agg-plot/canvas-window.cpp
@@ -77,6 +77,7 @@ canvas_window::on_init()
this->on_resize(width(), height());
}
+/*
void
canvas_window::start()
{
@@ -96,6 +97,7 @@ canvas_window::start()
this->unlock();
}
+*/
void
canvas_window::start_new_thread (lua_State *L)
@@ -130,7 +132,21 @@ canvas_thread_function (void *_win)
platform_support_prepare();
canvas_window *win = (canvas_window *) _win;
- win->start();
+
+ win->caption("GSL shell plot");
+ if (win->init(480, 480, agg::window_resize))
+ {
+ win->status = canvas_window::running;
+ win->run();
+ win->status = canvas_window::closed;
+
+ GSL_SHELL_LOCK();
+ gsl_shell_unref_plot (win->id);
+ GSL_SHELL_UNLOCK();
+ }
+
+ win->unlock();
+
return NULL;
}
generated by cgit v1.2.3 (git 2.39.1) at 2025年09月13日 22:11:42 +0000

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