From 8ffd7e04c4cf5089b3adbe211ce2c80f4e76ebd7 Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Tue, 15 Feb 2011 17:07:34 -0800 Subject: usrp-e100: replaced safe managed buffers in usrp-e100 mmap with custom ones the buffers are reusable and the overhead is reduced (nothing to malloc) also removed the zero_copy.cpp (not needed anymore) need to test on device... --- host/include/uhd/transport/zero_copy.hpp | 30 ------------------------------ 1 file changed, 30 deletions(-) (limited to 'host/include') diff --git a/host/include/uhd/transport/zero_copy.hpp b/host/include/uhd/transport/zero_copy.hpp index 18eb3fb6d..092028d09 100644 --- a/host/include/uhd/transport/zero_copy.hpp +++ b/host/include/uhd/transport/zero_copy.hpp @@ -21,7 +21,6 @@ #include #include #include -#include namespace uhd{ namespace transport{ @@ -33,20 +32,6 @@ namespace uhd{ namespace transport{ class UHD_API managed_recv_buffer{ public: typedef boost::shared_ptr sptr; - typedef boost::function release_fcn_t; - - /*! - * Make a safe managed receive buffer: - * A safe managed buffer ensures that release is called once, - * either by the user or automatically upon deconstruction. - * \param buff a pointer into read-only memory - * \param size the length of the buffer in bytes - * \param release_fcn callback to release the memory - * \return a new managed receive buffer - */ - static sptr make_safe( - const void *buff, size_t size, const release_fcn_t &release_fcn - ); /*! * Signal to the transport that we are done with the buffer. @@ -84,21 +69,6 @@ namespace uhd{ namespace transport{ class UHD_API managed_send_buffer{ public: typedef boost::shared_ptr sptr; - typedef boost::function commit_fcn_t; - - /*! - * Make a safe managed send buffer: - * A safe managed buffer ensures that commit is called once, - * either by the user or automatically upon deconstruction. - * In the later case, the deconstructor will call commit(0). - * \param buff a pointer into writable memory - * \param size the length of the buffer in bytes - * \param commit_fcn callback to commit the memory - * \return a new managed send buffer - */ - static sptr make_safe( - void *buff, size_t size, const commit_fcn_t &commit_fcn - ); /*! * Signal to the transport that we are done with the buffer. -- cgit v1.2.3