diff options
author | Josh Blum | 2013-03-17 17:38:40 -0700 |
---|---|---|
committer | Josh Blum | 2013-03-17 17:38:40 -0700 |
commit | 468d53f7797c63cda2ef9ba765f1066550d19ce4 (patch) | |
tree | 4008d74ee3138114799e9bf8434f8356e8ad804f /python/gras/GRAS_HierBlock.i | |
parent | 420f118ed61c52ae00b765b57be83bae910e0a60 (diff) | |
download | sandhi-468d53f7797c63cda2ef9ba765f1066550d19ce4.tar.gz sandhi-468d53f7797c63cda2ef9ba765f1066550d19ce4.tar.bz2 sandhi-468d53f7797c63cda2ef9ba765f1066550d19ce4.zip |
gras: work on python hooks for props interface
Diffstat (limited to 'python/gras/GRAS_HierBlock.i')
-rw-r--r-- | python/gras/GRAS_HierBlock.i | 23 |
1 files changed, 1 insertions, 22 deletions
diff --git a/python/gras/GRAS_HierBlock.i b/python/gras/GRAS_HierBlock.i index 481bb0e..32c823b 100644 --- a/python/gras/GRAS_HierBlock.i +++ b/python/gras/GRAS_HierBlock.i @@ -17,27 +17,6 @@ } } -//////////////////////////////////////////////////////////////////////// -// Simple class to deal with smart save/restore of python thread state -//////////////////////////////////////////////////////////////////////// -%{ - -struct PyTSPhondler -{ - PyTSPhondler(void): - s(PyEval_SaveThread()) - { - //NOP - } - ~PyTSPhondler(void) - { - PyEval_RestoreThread(s); - } - PyThreadState *s; -}; - -%} - %{ #include <gras/hier_block.hpp> #include <gras/top_block.hpp> @@ -52,7 +31,7 @@ struct PyTSPhondler //////////////////////////////////////////////////////////////////////// // Make a special top block with python safe unlocking wait //////////////////////////////////////////////////////////////////////// - +%include "GRAS_Utils.i" %inline %{ namespace gras |