summaryrefslogtreecommitdiff
path: root/gnuradio-core
diff options
context:
space:
mode:
authorjcorgan2008-08-12 17:01:37 +0000
committerjcorgan2008-08-12 17:01:37 +0000
commit6898c0abce827366e8985ba1d3f6805056eebc05 (patch)
tree764cd6f3715806bff3aafc99ba0257122c59c71b /gnuradio-core
parent2105e82eb7d5cf5e5f44d3603c0111eecfaebe40 (diff)
downloadgnuradio-6898c0abce827366e8985ba1d3f6805056eebc05.tar.gz
gnuradio-6898c0abce827366e8985ba1d3f6805056eebc05.tar.bz2
gnuradio-6898c0abce827366e8985ba1d3f6805056eebc05.zip
Make gr_basic_block sort deterministic (Martin Dvh)
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@9251 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'gnuradio-core')
-rw-r--r--gnuradio-core/src/lib/runtime/gr_basic_block.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/gnuradio-core/src/lib/runtime/gr_basic_block.h b/gnuradio-core/src/lib/runtime/gr_basic_block.h
index 7dda1201f..78297d3f0 100644
--- a/gnuradio-core/src/lib/runtime/gr_basic_block.h
+++ b/gnuradio-core/src/lib/runtime/gr_basic_block.h
@@ -98,6 +98,11 @@ public:
virtual bool check_topology(int ninputs, int noutputs) { return true; }
};
+inline bool operator<(gr_basic_block_sptr lhs, gr_basic_block_sptr rhs)
+{
+ return lhs->unique_id() < rhs->unique_id();
+}
+
typedef std::vector<gr_basic_block_sptr> gr_basic_block_vector_t;
typedef std::vector<gr_basic_block_sptr>::iterator gr_basic_block_viter_t;