diff options
author | Josh Blum | 2012-11-24 00:32:38 -0800 |
---|---|---|
committer | Josh Blum | 2012-11-24 00:32:38 -0800 |
commit | 4f7dbcddccd70f3592ede97d739791bcfcfc8b52 (patch) | |
tree | 82a938703d1a1e6e54c0e20e69d1a454488eca0c /include | |
parent | ccfc4200547605b71a5b65ea9ab86fa45a34dc7b (diff) | |
download | sandhi-4f7dbcddccd70f3592ede97d739791bcfcfc8b52.tar.gz sandhi-4f7dbcddccd70f3592ede97d739791bcfcfc8b52.tar.bz2 sandhi-4f7dbcddccd70f3592ede97d739791bcfcfc8b52.zip |
change output buffer api call to pop
Once the output buffer is tampered with,
its not acceptable to be kept in the queue anymore
Diffstat (limited to 'include')
-rw-r--r-- | include/gras/block.hpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/gras/block.hpp b/include/gras/block.hpp index ba09377..4c09cac 100644 --- a/include/gras/block.hpp +++ b/include/gras/block.hpp @@ -251,11 +251,12 @@ struct GRAS_API Block : Element * This is the same buffer pointed to by output_items[which]. * This function must be called during the call to work(). * Use this to get a pool of buffers for datagram message ports. + * This function removes the output buffer from the internal queue. * * \param which_output the output port index - * \return a const reference to the buffer + * \return a reference counted copy of the buffer */ - const SBuffer &get_output_buffer(const size_t which_output) const; + SBuffer pop_output_buffer(const size_t which_output); /*! * Post the given output buffer to the downstream. |