diff options
author | Thomas Grill <xovo@users.sourceforge.net> | 2005-02-23 04:57:19 +0000 |
---|---|---|
committer | Thomas Grill <xovo@users.sourceforge.net> | 2005-02-23 04:57:19 +0000 |
commit | 579f564ce490566d0462bc2138a4beefa7747b7e (patch) | |
tree | 1d97a889e28f2638209acf05b6a9f5dff6cd6c80 /externals/grill/py/source/main.h | |
parent | 4a65e0dcd504848ee89dfe3d12321e2587b2a77d (diff) |
better cleanup behavior (shutdown hook method _del and garbage collection)
- garbage collection at module scope
update for flext build system
- better handling of bang messages
fixes for single-threaded compilation
little restructuring
svn path=/trunk/; revision=2573
Diffstat (limited to 'externals/grill/py/source/main.h')
-rw-r--r-- | externals/grill/py/source/main.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/externals/grill/py/source/main.h b/externals/grill/py/source/main.h index 8671a87f..621c9eff 100644 --- a/externals/grill/py/source/main.h +++ b/externals/grill/py/source/main.h @@ -90,7 +90,7 @@ protected: void Respond(bool b); - static bool IsAnything(const t_symbol *s) { return s && s != sym_bang && s != sym_float && s != sym_int && s != sym_symbol && s != sym_list && s != sym_pointer; } + static bool IsAnything(const t_symbol *s) { return s && s != sym_float && s != sym_int && s != sym_symbol && s != sym_list && s != sym_pointer; } enum retval { nothing,atom,sequ }; @@ -132,6 +132,8 @@ protected: static short patcher_myvol(t_patcher *x); #endif + static void collect(); + private: void work_wrapper(void *data); @@ -142,16 +144,14 @@ private: Fifo qufifo; ThrCond qucond; + static PyThreadState *FindThreadState(); + static void FreeThreadState(); + FLEXT_THREAD_X(work_wrapper) #else FLEXT_CALLBACK_X(work_wrapper) #endif -#ifdef FLEXT_THREADS - static PyThreadState *FindThreadState(); - static void FreeThreadState(); -#endif - public: #ifdef FLEXT_THREADS |