[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] [gnuradio] 46/50: controlport: avoid copy of outknobs
From: |
git |
Subject: |
[Commit-gnuradio] [gnuradio] 46/50: controlport: avoid copy of outknobs (a temporary). |
Date: |
Wed, 15 Apr 2015 21:07:58 +0000 (UTC) |
This is an automated email from the git hooks/post-receive script.
jcorgan pushed a commit to branch master
in repository gnuradio.
commit 91459f9b06500ac16f555819ef3c20f2029483c8
Author: Nate Goergen <address@hidden>
Date: Sun Mar 15 21:45:48 2015 -0500
controlport: avoid copy of outknobs (a temporary).
---
.../lib/controlport/thrift/rpcserver_thrift.cc | 21 ++++++---------------
1 file changed, 6 insertions(+), 15 deletions(-)
diff --git a/gnuradio-runtime/lib/controlport/thrift/rpcserver_thrift.cc
b/gnuradio-runtime/lib/controlport/thrift/rpcserver_thrift.cc
index a4119f7..c4655d3 100644
--- a/gnuradio-runtime/lib/controlport/thrift/rpcserver_thrift.cc
+++ b/gnuradio-runtime/lib/controlport/thrift/rpcserver_thrift.cc
@@ -133,30 +133,25 @@ void
rpcserver_thrift::getKnobs(GNURadio::KnobMap& _return,
const GNURadio::KnobIDList& knobs)
{
- GNURadio::KnobMap outknobs;
-
if(knobs.size() == 0) {
std::for_each(d_getcallbackmap.begin(), d_getcallbackmap.end(),
get_all_f<QueryCallbackMap_t::value_type,
QueryCallbackMap_t, GNURadio::KnobMap>
- (d_getcallbackmap, cur_priv, outknobs));
+ (d_getcallbackmap, cur_priv, _return));
}
else {
std::for_each(knobs.begin(), knobs.end(),
get_f<GNURadio::KnobIDList::value_type, QueryCallbackMap_t>
- (d_getcallbackmap, cur_priv, outknobs));
+ (d_getcallbackmap, cur_priv, _return));
}
- _return = outknobs;
}
void
rpcserver_thrift::getRe(GNURadio::KnobMap& _return, const
GNURadio::KnobIDList& knobs)
{
- GNURadio::KnobMap outknobs;
-
if(knobs.size() == 0) {
std::for_each(d_getcallbackmap.begin(), d_getcallbackmap.end(),
get_all_f<QueryCallbackMap_t::value_type,
QueryCallbackMap_t, GNURadio::KnobMap>
- (d_getcallbackmap, cur_priv, outknobs));
+ (d_getcallbackmap, cur_priv, _return));
}
else {
QueryCallbackMap_t::iterator it;
@@ -165,34 +160,30 @@ rpcserver_thrift::getRe(GNURadio::KnobMap& _return, const
GNURadio::KnobIDList&
const boost::xpressive::sregex
re(boost::xpressive::sregex::compile(knobs[j]));
if(boost::xpressive::regex_match(it->first, re)) {
get_f<GNURadio::KnobIDList::value_type, QueryCallbackMap_t>
- (d_getcallbackmap, cur_priv, outknobs)(it->first);
+ (d_getcallbackmap, cur_priv, _return)(it->first);
break;
}
}
}
}
- _return = outknobs;
}
void
rpcserver_thrift::properties(GNURadio::KnobPropMap& _return,
const GNURadio::KnobIDList& knobs)
{
- GNURadio::KnobPropMap outknobs;
-
if(knobs.size() == 0) {
std::for_each(d_getcallbackmap.begin(), d_getcallbackmap.end(),
properties_all_f<QueryCallbackMap_t::value_type,
QueryCallbackMap_t, GNURadio::KnobPropMap>(d_getcallbackmap,
- cur_priv,
outknobs));
+ cur_priv,
_return));
}
else {
std::for_each(knobs.begin(), knobs.end(),
properties_f<GNURadio::KnobIDList::value_type,
QueryCallbackMap_t, GNURadio::KnobPropMap>(d_getcallbackmap,
- cur_priv,
outknobs));
+ cur_priv,
_return));
}
- _return = outknobs;
}
void
- [Commit-gnuradio] [gnuradio] 37/50: controlport: Some documentation, (continued)
- [Commit-gnuradio] [gnuradio] 37/50: controlport: Some documentation, git, 2015/04/16
- [Commit-gnuradio] [gnuradio] 32/50: controlport: moving the generation of the Thrift endpoint string to the application_started() function., git, 2015/04/16
- [Commit-gnuradio] [gnuradio] 42/50: controlport: QA needs to get host and port out of the endpoint., git, 2015/04/16
- [Commit-gnuradio] [gnuradio] 27/50: controlport: cleaning up; trying to handle shutdown better., git, 2015/04/16
- [Commit-gnuradio] [gnuradio] 19/50: controlport: simple style editing., git, 2015/04/16
- [Commit-gnuradio] [gnuradio] 36/50: controlport: renamed some functions for clairity, git, 2015/04/16
- [Commit-gnuradio] [gnuradio] 50/50: Merge branch 'ctrlport', git, 2015/04/16
- [Commit-gnuradio] [gnuradio] 26/50: docs: adding in info on ControlPort and Thrift., git, 2015/04/16
- [Commit-gnuradio] [gnuradio] 49/50: cmake: fix case for ctrlport when no backends installed, git, 2015/04/16
- [Commit-gnuradio] [gnuradio] 12/50: controlport: reorg abstraction layers for RPC connections., git, 2015/04/16
- [Commit-gnuradio] [gnuradio] 46/50: controlport: avoid copy of outknobs (a temporary).,
git <=
- [Commit-gnuradio] [gnuradio] 47/50: controlport: cleaner, more robust interface for buffer gets., git, 2015/04/16
- [Commit-gnuradio] [gnuradio] 48/50: controlport: better controlport probe mutex handling., git, 2015/04/16
- [Commit-gnuradio] [gnuradio] 44/50: docs: cleaning up some doxygen warnings and formatting., git, 2015/04/16
- [Commit-gnuradio] [gnuradio] 05/50: controlport: working gr-perf-monitorx application, git, 2015/04/16