[hamradio-commits] [gnss-sdr] 71/251: fixing unreachable code
Carles Fernandez
carles_fernandez-guest at moszumanska.debian.org
Wed Sep 2 00:22:37 UTC 2015
This is an automated email from the git hooks/post-receive script.
carles_fernandez-guest pushed a commit to branch master
in repository gnss-sdr.
commit 5d6a6618422ae613c8201cc897d6d7c9b3bf56d3
Author: Carles Fernandez <carles.fernandez at gmail.com>
Date: Tue May 12 23:45:56 2015 +0200
fixing unreachable code
---
src/core/receiver/concurrent_map.h | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/src/core/receiver/concurrent_map.h b/src/core/receiver/concurrent_map.h
index f1f2b31..fff578c 100644
--- a/src/core/receiver/concurrent_map.h
+++ b/src/core/receiver/concurrent_map.h
@@ -68,15 +68,17 @@ public:
std::map<int,Data> get_map_copy()
{
boost::mutex::scoped_lock lock(the_mutex);
- return the_map;
+ std::map<int,Data> map_aux = the_map;
lock.unlock();
+ return map_aux;
}
- int size()
+ size_t size()
{
boost::mutex::scoped_lock lock(the_mutex);
- return the_map.size();
+ size_t size_ = the_map.size();
lock.unlock();
+ return size_;
}
bool read(int key, Data& p_data)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-hamradio/gnss-sdr.git
More information about the pkg-hamradio-commits
mailing list