summaryrefslogtreecommitdiffstats
path: root/host/include
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-05-27 14:10:50 -0700
committerJosh Blum <josh@joshknows.com>2010-05-27 14:10:50 -0700
commit4eff47a4b66eff61feffe6498b9ecebef94dc6b9 (patch)
treec2a431a614cdb2ee37af1af367dcfd83ef971e78 /host/include
parent39943a5b0c3c210babfd6e62711ea4bf3133866b (diff)
downloaduhd-4eff47a4b66eff61feffe6498b9ecebef94dc6b9.tar.gz
uhd-4eff47a4b66eff61feffe6498b9ecebef94dc6b9.tar.bz2
uhd-4eff47a4b66eff61feffe6498b9ecebef94dc6b9.zip
Tweak with the udp and zero-copy transport. Eventually, the caller will hang onto a ring of managed buffers.
Diffstat (limited to 'host/include')
-rw-r--r--host/include/uhd/transport/zero_copy.hpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/host/include/uhd/transport/zero_copy.hpp b/host/include/uhd/transport/zero_copy.hpp
index fdc5b141c..52c6d4143 100644
--- a/host/include/uhd/transport/zero_copy.hpp
+++ b/host/include/uhd/transport/zero_copy.hpp
@@ -35,11 +35,12 @@ public:
typedef boost::shared_ptr<managed_recv_buffer> sptr;
/*!
+ * Managed recv buffer destructor:
* Signal to the transport that we are done with the buffer.
* This should be called to release the buffer to the transport.
* After calling, the referenced memory should be considered invalid.
*/
- virtual void done(void) = 0;
+ virtual ~managed_recv_buffer(void){};
/*!
* Get the size of the underlying buffer.
@@ -81,7 +82,7 @@ public:
* After calling, the referenced memory should be considered invalid.
* \param num_bytes the number of bytes written into the buffer
*/
- virtual void done(size_t num_bytes) = 0;
+ virtual void commit(size_t num_bytes) = 0;
/*!
* Get the size of the underlying buffer.