diff options
author | Josh Blum | 2012-09-22 17:49:52 -0400 |
---|---|---|
committer | Josh Blum | 2012-09-22 17:49:52 -0400 |
commit | a76963ab6fdde4bf793ecb38f95fa6255647288a (patch) | |
tree | 9dc44a50a830f7d3d76ea11f7cac9ae4aef558b0 /lib/gras_impl/interruptible_thread.hpp | |
parent | 89de2759ba95682f51865dd06b7509e48969dc96 (diff) | |
download | sandhi-a76963ab6fdde4bf793ecb38f95fa6255647288a.tar.gz sandhi-a76963ab6fdde4bf793ecb38f95fa6255647288a.tar.bz2 sandhi-a76963ab6fdde4bf793ecb38f95fa6255647288a.zip |
threading related tweaks for happy qa code
Diffstat (limited to 'lib/gras_impl/interruptible_thread.hpp')
-rw-r--r-- | lib/gras_impl/interruptible_thread.hpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/gras_impl/interruptible_thread.hpp b/lib/gras_impl/interruptible_thread.hpp index 7546019..9ac7349 100644 --- a/lib/gras_impl/interruptible_thread.hpp +++ b/lib/gras_impl/interruptible_thread.hpp @@ -69,6 +69,12 @@ namespace gnuradio } _thread->interrupt(); _thread->join(); + + //We dont need to manually remove and delete the thread, + //but I thought it was nicer than thread group accumulating + //dead threads run after run. + _thread_group->remove_thread(_thread); + delete _thread; } GRAS_FORCE_INLINE void call(void) |