summaryrefslogtreecommitdiff
path: root/lib/gras_impl
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/gras_impl
parent075dfb6aae5c309b34789761aee3acd63f9d03fc (diff)
downloadsandhi-9b06c037fcb618199e99518ee120ef3b2f1e96a7.tar.gz
sandhi-9b06c037fcb618199e99518ee120ef3b2f1e96a7.tar.bz2
sandhi-9b06c037fcb618199e99518ee120ef3b2f1e96a7.zip
created configurable thread pool
Diffstat (limited to 'lib/gras_impl')
-rw-r--r--lib/gras_impl/block_actor.hpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/gras_impl/block_actor.hpp b/lib/gras_impl/block_actor.hpp
index 4fe6359..d85e366 100644
--- a/lib/gras_impl/block_actor.hpp
+++ b/lib/gras_impl/block_actor.hpp
@@ -22,6 +22,7 @@
#include <gnuradio/gras.hpp>
#include <gnuradio/block.hpp>
#include <gnuradio/top_block.hpp>
+#include <gnuradio/thread_pool.hpp>
#include <Apology/Worker.hpp>
#include <gras_impl/token.hpp>
#include <gras_impl/messages.hpp>
@@ -50,6 +51,7 @@ struct BlockActor : Apology::Worker
~BlockActor(void);
Block *block_ptr;
std::string name; //for debug
+ ThreadPool thread_pool;
//do it here so we can match w/ the handler declarations
void register_handlers(void)
@@ -188,7 +190,7 @@ struct BlockActor : Apology::Worker
BLOCK_STATE_LIVE,
BLOCK_STATE_DONE,
} block_state;
- Affinity buffer_affinity;
+ long buffer_affinity;
std::vector<std::vector<OutputHintMessage> > output_allocation_hints;