From 8994dac676a881dce818238d4519182a8bf635ea Mon Sep 17 00:00:00 2001 From: Thomas Grill Date: Tue, 19 Jul 2005 13:18:33 +0000 Subject: better exception handling and error message much better detach method handling (one thread for all object instances) oops, forgot to code one branch better definition of output values (atoms, lists, anythings) svn path=/trunk/; revision=3360 --- externals/grill/py/source/pybase.h | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'externals/grill/py/source/pybase.h') diff --git a/externals/grill/py/source/pybase.h b/externals/grill/py/source/pybase.h index f7b6840b..28ee9770 100644 --- a/externals/grill/py/source/pybase.h +++ b/externals/grill/py/source/pybase.h @@ -148,7 +148,7 @@ protected: return true; } - virtual bool thrcall(void *data) = 0; +// virtual bool thrcall(void *data) = 0; virtual void callpy(PyObject *fun,PyObject *args) = 0; void exchandle(); @@ -161,13 +161,16 @@ protected: protected: - void work_wrapper(void *data); - #ifdef FLEXT_THREADS + static void thrworker(thr_params *data); + bool qucall(PyObject *fun,PyObject *args); - void threadworker(); - PyFifo qufifo; - ThrCond qucond; + + static void quworker(thr_params *); + void erasethreads(); + + static PyFifo qufifo; + static ThrCond qucond; static PyThreadState *pythrsys; static PyThreadState *FindThreadState(); -- cgit v1.2.1