diff options
author | Josh Blum | 2012-10-03 00:26:53 -0700 |
---|---|---|
committer | Josh Blum | 2012-10-03 00:26:53 -0700 |
commit | f4694482fdb682a3abf2ed58b334e377b852799f (patch) | |
tree | 148501c3a257d3cc8e720c5e1fe03ff398b7c4e1 | |
parent | ad4dffb4ea31062de87348e50b77862c5ccdf4c8 (diff) | |
download | sandhi-f4694482fdb682a3abf2ed58b334e377b852799f.tar.gz sandhi-f4694482fdb682a3abf2ed58b334e377b852799f.tar.bz2 sandhi-f4694482fdb682a3abf2ed58b334e377b852799f.zip |
make use of free alignment macros
-rw-r--r-- | lib/theron_allocator.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/theron_allocator.cpp b/lib/theron_allocator.cpp index 4f35bbb..01d21ef 100644 --- a/lib/theron_allocator.cpp +++ b/lib/theron_allocator.cpp @@ -22,6 +22,7 @@ * and otherwise the regular malloc/free for larger buffers. **********************************************************************/ +#include <gnuradio/gras.hpp> #include <gras_impl/debug.hpp> #include <Theron/Detail/Threading/SpinLock.h> #include <Theron/IAllocator.h> @@ -85,7 +86,9 @@ static struct WorkerAllocator : Theron::IAllocator } boost::circular_buffer<void *> queue; - long pool[MY_ALLOCATOR_POOL_SIZE/sizeof(long)]; + THERON_PREALIGN(GRAS_MAX_ALIGNMENT) + char pool[MY_ALLOCATOR_POOL_SIZE] + THERON_POSTALIGN(GRAS_MAX_ALIGNMENT); ptrdiff_t pool_end; Theron::Detail::SpinLock mSpinLock; |