aboutsummaryrefslogtreecommitdiffstats
path: root/host/include
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2011-02-15 17:07:34 -0800
committerJosh Blum <josh@joshknows.com>2011-02-15 17:07:34 -0800
commit8ffd7e04c4cf5089b3adbe211ce2c80f4e76ebd7 (patch)
tree7443157ce121e933ddba4dcc3dd9a5ed6a25c151 /host/include
parent153f2575bb077c66f7ce5ba5d7911eea6fc37b98 (diff)
downloaduhd-8ffd7e04c4cf5089b3adbe211ce2c80f4e76ebd7.tar.gz
uhd-8ffd7e04c4cf5089b3adbe211ce2c80f4e76ebd7.tar.bz2
uhd-8ffd7e04c4cf5089b3adbe211ce2c80f4e76ebd7.zip
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...
Diffstat (limited to 'host/include')
-rw-r--r--host/include/uhd/transport/zero_copy.hpp30
1 files changed, 0 insertions, 30 deletions
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 <uhd/config.hpp>
#include <boost/utility.hpp>
#include <boost/shared_ptr.hpp>
-#include <boost/function.hpp>
namespace uhd{ namespace transport{
@@ -33,20 +32,6 @@ namespace uhd{ namespace transport{
class UHD_API managed_recv_buffer{
public:
typedef boost::shared_ptr<managed_recv_buffer> sptr;
- typedef boost::function<void(void)> 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<managed_send_buffer> sptr;
- typedef boost::function<void(size_t)> 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.