From 6898c0abce827366e8985ba1d3f6805056eebc05 Mon Sep 17 00:00:00 2001 From: jcorgan Date: Tue, 12 Aug 2008 17:01:37 +0000 Subject: Make gr_basic_block sort deterministic (Martin Dvh) git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@9251 221aa14e-8319-0410-a670-987f0aec2ac5 --- gnuradio-core/src/lib/runtime/gr_basic_block.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'gnuradio-core') 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_vector_t; typedef std::vector::iterator gr_basic_block_viter_t; -- cgit