diff options
author | Josh Blum | 2012-11-08 19:28:25 -0800 |
---|---|---|
committer | Josh Blum | 2012-11-08 19:28:25 -0800 |
commit | dd6f32746366a08eb7cfbd5fe19e55768c94f79f (patch) | |
tree | 7495a1503f95e87532e0e153779382e0f6c04ea7 /python/gras | |
parent | d1d9b98d31d17b9c7b8b80105de890c287ccf96e (diff) | |
download | sandhi-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.i | 6 |
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; |