aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/py/source/main.h
diff options
context:
space:
mode:
authorThomas Grill <xovo@users.sourceforge.net>2005-01-10 05:00:56 +0000
committerThomas Grill <xovo@users.sourceforge.net>2005-01-10 05:00:56 +0000
commit4651f8a117cd663ddd77355055b0580cce636da3 (patch)
tree155faf09847ac1a0c5d10f131053946ffcd0a8ab /externals/grill/py/source/main.h
parent97492d5628f603856df9a3dd2abd55d33918dc4f (diff)
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
Diffstat (limited to 'externals/grill/py/source/main.h')
-rw-r--r--externals/grill/py/source/main.h14
1 files changed, 9 insertions, 5 deletions
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