[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] [gnuradio] 31/148: pass vector of sbuffs by reference
From: |
git |
Subject: |
[Commit-gnuradio] [gnuradio] 31/148: pass vector of sbuffs by reference to callback |
Date: |
Mon, 15 Aug 2016 00:47:21 +0000 (UTC) |
This is an automated email from the git hooks/post-receive script.
nwest pushed a commit to annotated tag old_usrp_devel_udp
in repository gnuradio.
commit 4e432215441a2224817ec2f68d607218dc91fe93
Author: Josh Blum <address@hidden>
Date: Fri Nov 6 11:33:10 2009 -0800
pass vector of sbuffs by reference to callback
---
usrp2/host/lib/transport.h | 2 +-
usrp2/host/lib/usrp2_impl.cc | 4 ++--
usrp2/host/lib/usrp2_impl.h | 4 ++--
3 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/usrp2/host/lib/transport.h b/usrp2/host/lib/transport.h
index 4b58248..50eec5c 100644
--- a/usrp2/host/lib/transport.h
+++ b/usrp2/host/lib/transport.h
@@ -29,7 +29,7 @@ namespace usrp2 {
class transport {
public:
- typedef boost::function<void(std::vector<sbuff::sptr>)> callback_t;
+ typedef boost::function<void(std::vector<sbuff::sptr> &)> callback_t;
typedef boost::shared_ptr<transport> sptr;
private:
std::string d_type_str;
diff --git a/usrp2/host/lib/usrp2_impl.cc b/usrp2/host/lib/usrp2_impl.cc
index d279e06..8800862 100644
--- a/usrp2/host/lib/usrp2_impl.cc
+++ b/usrp2/host/lib/usrp2_impl.cc
@@ -254,7 +254,7 @@ namespace usrp2 {
}
void
- usrp2::impl::handle_control_packet(std::vector<sbuff::sptr> sbs)
+ usrp2::impl::handle_control_packet(std::vector<sbuff::sptr> &sbs)
{
for (size_t i = 0; i < sbs.size(); i++) {
sbuff::sptr sb = sbs[i];
@@ -292,7 +292,7 @@ namespace usrp2 {
}
void
- usrp2::impl::handle_data_packet(std::vector<sbuff::sptr> sbs)
+ usrp2::impl::handle_data_packet(std::vector<sbuff::sptr> &sbs)
{
if (d_dont_enqueue) return;
diff --git a/usrp2/host/lib/usrp2_impl.h b/usrp2/host/lib/usrp2_impl.h
index f48b635..0cb786d 100644
--- a/usrp2/host/lib/usrp2_impl.h
+++ b/usrp2/host/lib/usrp2_impl.h
@@ -96,8 +96,8 @@ namespace usrp2 {
void init_config_tx_v2_cmd(op_config_tx_v2_cmd *cmd);
bool transmit_cmd_and_wait(void *cmd, size_t len, pending_reply *p, double
secs=0.0);
bool transmit_cmd(void *cmd, size_t len);
- void handle_control_packet(std::vector<sbuff::sptr> sbs);
- void handle_data_packet(std::vector<sbuff::sptr> sbs);
+ void handle_control_packet(std::vector<sbuff::sptr> &sbs);
+ void handle_data_packet(std::vector<sbuff::sptr> &sbs);
bool dboard_info();
bool reset_db();
- [Commit-gnuradio] [gnuradio] 28/148: Cleaned up the parse ethernet stuff. Made an official max_buffs method for the transport., (continued)
- [Commit-gnuradio] [gnuradio] 28/148: Cleaned up the parse ethernet stuff. Made an official max_buffs method for the transport., git, 2016/08/14
- [Commit-gnuradio] [gnuradio] 20/148: Created sbuff class to house chunks of memory, their length, and possible callback for freeing/cleanup. Switched ring and transport to make use of the sbuff on receive., git, 2016/08/14
- [Commit-gnuradio] [gnuradio] 37/148: Fixes usrp2 firmware configure with mb-gcc on ubuntu 9.10/autoconf 2.64. Disables the regression test for fopen since stdio is non-functional., git, 2016/08/14
- [Commit-gnuradio] [gnuradio] 22/148: usrp2 impl working with data transport. not up to full potential yet, but working. needs major cleanup., git, 2016/08/14
- [Commit-gnuradio] [gnuradio] 23/148: Changed the transport to return a vector of sbuffs. This way the ethernet can pass up as many buffs as ready., git, 2016/08/14
- [Commit-gnuradio] [gnuradio] 11/148: some house keeping while trying to fix thread exception, git, 2016/08/14
- [Commit-gnuradio] [gnuradio] 12/148: Disable interruption in those functions that use interruption points such as sleep, wait, and timed_wait., git, 2016/08/14
- [Commit-gnuradio] [gnuradio] 30/148: being more c++y with the ring, git, 2016/08/14
- [Commit-gnuradio] [gnuradio] 36/148: Merge branch 'vita_rx' of http://gnuradio.org/git/matt into wip/usrp2, git, 2016/08/14
- [Commit-gnuradio] [gnuradio] 29/148: cleanup stuff, git, 2016/08/14
- [Commit-gnuradio] [gnuradio] 31/148: pass vector of sbuffs by reference to callback,
git <=
- [Commit-gnuradio] [gnuradio] 41/148: be a little more PC about it, git, 2016/08/14
- [Commit-gnuradio] [gnuradio] 32/148: Merge branch 'vita_rx' of http://gnuradio.org/git/matt into wip/usrp2, git, 2016/08/14
- [Commit-gnuradio] [gnuradio] 27/148: new memory map for vita49. Apps won't compile, since symbol names are different, git, 2016/08/14
- [Commit-gnuradio] [gnuradio] 16/148: Put ethernet control transport into its own cc/h files. Ethernet control transport is in-charge of ethernet and transport headers, so that usrp2 impl knows nothing about ethernet stuff (as far as control goes)., git, 2016/08/14
- [Commit-gnuradio] [gnuradio] 24/148: vita rx instead of rx_control. Ready for firmware testing. Misses timing by a little bit, will worry later., git, 2016/08/14
- [Commit-gnuradio] [gnuradio] 33/148: got firmware compiling with vrt rx, git, 2016/08/14
- [Commit-gnuradio] [gnuradio] 34/148: forgot to declare wires, git, 2016/08/14
- [Commit-gnuradio] [gnuradio] 39/148: mostly just copied over from the rx side. Still needs a lot of work., git, 2016/08/14
- [Commit-gnuradio] [gnuradio] 40/148: Added missing flag to vrt header in txrx.c. Added parsing to vrt expanded header to copy out header entries. Modified usrp2 impl to use the correctly parsed header., git, 2016/08/14
- [Commit-gnuradio] [gnuradio] 35/148: got vrt rx somewhat working, git, 2016/08/14