diff options
author | Thomas Grill <xovo@users.sourceforge.net> | 2005-02-01 04:57:06 +0000 |
---|---|---|
committer | Thomas Grill <xovo@users.sourceforge.net> | 2005-02-01 04:57:06 +0000 |
commit | 5143f2e9971ce2aa33f58383dac62e7f16514f86 (patch) | |
tree | 6e26388d36e6a551257008d040476fcc32298190 /externals/grill/py/source/main.h | |
parent | 526abae44574433902c8860c46a176a503491010 (diff) |
fixes for single-threaded compilation
little restructuring
svn path=/trunk/; revision=2554
Diffstat (limited to 'externals/grill/py/source/main.h')
-rw-r--r-- | externals/grill/py/source/main.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/externals/grill/py/source/main.h b/externals/grill/py/source/main.h index ef9a16c9..8671a87f 100644 --- a/externals/grill/py/source/main.h +++ b/externals/grill/py/source/main.h @@ -133,14 +133,15 @@ protected: #endif private: + + void work_wrapper(void *data); + +#ifdef FLEXT_THREADS bool qucall(PyObject *fun,PyObject *args); void threadworker(); Fifo qufifo; ThrCond qucond; - void work_wrapper(void *data); - -#ifdef FLEXT_THREADS FLEXT_THREAD_X(work_wrapper) #else FLEXT_CALLBACK_X(work_wrapper) @@ -194,7 +195,9 @@ protected: FLEXT_CALLBACK(m_doc) FLEXT_CALLBACK_T(tick) +#ifdef FLEXT_THREADS FLEXT_THREAD(threadworker) +#endif }; #endif |