diff options
author | Josh Blum | 2012-09-30 02:48:22 -0700 |
---|---|---|
committer | Josh Blum | 2012-09-30 02:48:22 -0700 |
commit | 8e224b5da13783bfd89eccd356b030146d02396d (patch) | |
tree | 1afb5d0221610f8fdcaa7041e61491e2027dcb3b /lib/gras_impl/output_buffer_queues.hpp | |
parent | f5d9f2b631049f49b9008a95df56d5cc1ad11335 (diff) | |
download | sandhi-8e224b5da13783bfd89eccd356b030146d02396d.tar.gz sandhi-8e224b5da13783bfd89eccd356b030146d02396d.tar.bz2 sandhi-8e224b5da13783bfd89eccd356b030146d02396d.zip |
created a bitset wrapper w/ all() routine
as it turns out ~ was making a new bitset and a malloc
just make some common code to avoid the reuse
Diffstat (limited to 'lib/gras_impl/output_buffer_queues.hpp')
-rw-r--r-- | lib/gras_impl/output_buffer_queues.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/gras_impl/output_buffer_queues.hpp b/lib/gras_impl/output_buffer_queues.hpp index d484f3d..18eb551 100644 --- a/lib/gras_impl/output_buffer_queues.hpp +++ b/lib/gras_impl/output_buffer_queues.hpp @@ -17,7 +17,7 @@ #ifndef INCLUDED_LIBGRAS_IMPL_OUTPUT_BUFFER_QUEUES_HPP #define INCLUDED_LIBGRAS_IMPL_OUTPUT_BUFFER_QUEUES_HPP -#include <boost/dynamic_bitset.hpp> +#include <gras_impl/bitset.hpp> #include <vector> #include <deque> @@ -27,7 +27,7 @@ namespace gnuradio template <typename T> struct OutputBufferQueues { - boost::dynamic_bitset<> _bitset; + BitSet _bitset; std::vector<std::deque<T> > _queues; GRAS_FORCE_INLINE void resize(const size_t size) @@ -90,7 +90,7 @@ struct OutputBufferQueues GRAS_FORCE_INLINE bool all_ready(void) const { - return (~_bitset).none(); + return _bitset.all(); } GRAS_FORCE_INLINE size_t size(void) const |