From 4651f8a117cd663ddd77355055b0580cce636da3 Mon Sep 17 00:00:00 2001 From: Thomas Grill Date: Mon, 10 Jan 2005 05:00:56 +0000 Subject: closed multi-interpreter branch (no chance to have several interpreters in the same thread!) other thread-related cleanups py: added ability to choose function from message tag enabled int-tags for pyext class methods svn path=/trunk/; revision=2487 --- externals/grill/py/source/main.h | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'externals/grill/py/source/main.h') diff --git a/externals/grill/py/source/main.h b/externals/grill/py/source/main.h index e953b319..03b67e1c 100644 --- a/externals/grill/py/source/main.h +++ b/externals/grill/py/source/main.h @@ -58,9 +58,6 @@ protected: }; -PyThreadState *FindThreadState(); -void FreeThreadState(); - class py: public flext_base { @@ -141,9 +138,11 @@ protected: bool gencall(PyObject *fun,PyObject *args); virtual bool callpy(PyObject *fun,PyObject *args) = 0; -private: -// PyInterpreterState *interpreter; +#if FLEXT_SYS == FLEXT_SYS_MAX + static short patcher_myvol(t_patcher *x); +#endif +private: bool qucall(PyObject *fun,PyObject *args); void threadworker(); Fifo qufifo; @@ -157,6 +156,11 @@ private: FLEXT_CALLBACK_X(work_wrapper) #endif +#ifdef FLEXT_THREADS + static PyThreadState *FindThreadState(); + static void FreeThreadState(); +#endif + public: #ifdef FLEXT_THREADS -- cgit v1.2.1