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年08月13日 11:01:25 +0200
committerfrancesco-ST <francesco.abbate@st.com>2010年08月13日 11:01:25 +0200
commit7cdb95a74e7f352620cd500940b73bf221f9e91a (patch)
tree90141082f4f6ac45308d53e2ef2783788383b4cd /agg-plot/canvas-window.cpp
parent6ab457c2b4a9fb575d1a6429ec8a3b531fd43838 (diff)
downloadgsl-shell-7cdb95a74e7f352620cd500940b73bf221f9e91a.tar.gz
fixed race condition with window and its status
Diffstat (limited to 'agg-plot/canvas-window.cpp')
-rw-r--r--agg-plot/canvas-window.cpp 3
1 files changed, 2 insertions, 1 deletions
diff --git a/agg-plot/canvas-window.cpp b/agg-plot/canvas-window.cpp
index 56029706..b908732f 100644
--- a/agg-plot/canvas-window.cpp
+++ b/agg-plot/canvas-window.cpp
@@ -91,6 +91,8 @@ canvas_window::start_new_thread (lua_State *L)
this->lock();
+ this->status = canvas_window::starting;
+
if (pthread_create(win_thread, attr, canvas_thread_function, (void*) this))
{
object_index_remove (L, OBJECT_WINDOW, this->id);
@@ -102,7 +104,6 @@ canvas_window::start_new_thread (lua_State *L)
}
pthread_attr_destroy (attr);
- this->status = canvas_window::starting;
}
void *
generated by cgit v1.2.3 (git 2.25.1) at 2025年09月18日 06:42:55 +0000

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