summaryrefslogtreecommitdiff
path: root/python/gras
diff options
context:
space:
mode:
authorJosh Blum2012-11-08 19:28:25 -0800
committerJosh Blum2012-11-08 19:28:25 -0800
commitdd6f32746366a08eb7cfbd5fe19e55768c94f79f (patch)
tree7495a1503f95e87532e0e153779382e0f6c04ea7 /python/gras
parentd1d9b98d31d17b9c7b8b80105de890c287ccf96e (diff)
downloadsandhi-dd6f32746366a08eb7cfbd5fe19e55768c94f79f.tar.gz
sandhi-dd6f32746366a08eb7cfbd5fe19e55768c94f79f.tar.bz2
sandhi-dd6f32746366a08eb7cfbd5fe19e55768c94f79f.zip
save thread state on destructor, which may call back into python
Diffstat (limited to 'python/gras')
-rw-r--r--python/gras/GRAS_HierBlock.i6
1 files changed, 6 insertions, 0 deletions
diff --git a/python/gras/GRAS_HierBlock.i b/python/gras/GRAS_HierBlock.i
index c84dc0e..1a55f02 100644
--- a/python/gras/GRAS_HierBlock.i
+++ b/python/gras/GRAS_HierBlock.i
@@ -85,6 +85,12 @@ struct TopBlockPython : TopBlock
//NOP
}
+ ~TopBlockPython(void)
+ {
+ PyTSPhondler phil;
+ this->reset();
+ }
+
void start(void)
{
PyTSPhondler phil;