diff options
author | Josh Blum | 2012-12-15 10:07:32 -0800 |
---|---|---|
committer | Josh Blum | 2012-12-15 10:07:32 -0800 |
commit | be0a690b4a6f585e13df0a89b8dce1dc47998c4d (patch) | |
tree | 0ba4de9054cc9d59d29bf2ffb2de9240c0c2f1fd /lib/input_handlers.cpp | |
parent | b7c0a59c0a86f289f55935b19efaf448e892eefb (diff) | |
download | sandhi-be0a690b4a6f585e13df0a89b8dce1dc47998c4d.tar.gz sandhi-be0a690b4a6f585e13df0a89b8dce1dc47998c4d.tar.bz2 sandhi-be0a690b4a6f585e13df0a89b8dce1dc47998c4d.zip |
created input and output update per index
Diffstat (limited to 'lib/input_handlers.cpp')
-rw-r--r-- | lib/input_handlers.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/input_handlers.cpp b/lib/input_handlers.cpp index bef5234..66d2b68 100644 --- a/lib/input_handlers.cpp +++ b/lib/input_handlers.cpp @@ -71,3 +71,15 @@ void BlockActor::handle_input_alloc(const InputAllocMessage &message, const Ther ); if (new_msg.queue) this->post_upstream(index, new_msg); } + +void BlockActor::handle_input_update(const InputUpdateMessage &message, const Theron::Address) +{ + MESSAGE_TRACER(); + const size_t i = message.index; + + //update buffer queue configuration + const size_t preload_bytes = this->input_items_sizes[i]*this->input_configs[i].preload_items; + const size_t reserve_bytes = this->input_items_sizes[i]*this->input_configs[i].reserve_items; + const size_t maximum_bytes = this->input_items_sizes[i]*this->input_configs[i].maximum_items; + this->input_queues.update_config(i, this->input_items_sizes[i], preload_bytes, reserve_bytes, maximum_bytes); +} |