summaryrefslogtreecommitdiff
path: root/lib/element.cpp
diff options
context:
space:
mode:
authorJosh Blum2012-10-05 01:22:56 -0700
committerJosh Blum2012-10-05 01:22:56 -0700
commit9b06c037fcb618199e99518ee120ef3b2f1e96a7 (patch)
tree1e096af554f692991c28c46605bf5651ba0832b6 /lib/element.cpp
parent075dfb6aae5c309b34789761aee3acd63f9d03fc (diff)
downloadsandhi-9b06c037fcb618199e99518ee120ef3b2f1e96a7.tar.gz
sandhi-9b06c037fcb618199e99518ee120ef3b2f1e96a7.tar.bz2
sandhi-9b06c037fcb618199e99518ee120ef3b2f1e96a7.zip
created configurable thread pool
Diffstat (limited to 'lib/element.cpp')
-rw-r--r--lib/element.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/element.cpp b/lib/element.cpp
index 9987bd4..39cbca3 100644
--- a/lib/element.cpp
+++ b/lib/element.cpp
@@ -46,6 +46,8 @@ ElementImpl::~ElementImpl(void)
{
if (this->executor) this->top_block_cleanup();
if (this->topology) this->hier_block_cleanup();
+ this->block.reset();
+ this->thread_pool.reset(); //must be deleted after actor
}
Element &Element::shared_to_element(void)