summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJosh Blum2013-02-10 09:41:06 -0800
committerJosh Blum2013-02-10 09:41:06 -0800
commit1d58532ed3c14948b0bfb15a24cfe52718e0960f (patch)
tree56d98fc8a5c3016cc4659633473273b2cc24627c /lib
parentadd1d9d5c82777c243a8be4d34a36acc59ae411f (diff)
downloadsandhi-1d58532ed3c14948b0bfb15a24cfe52718e0960f.tar.gz
sandhi-1d58532ed3c14948b0bfb15a24cfe52718e0960f.tar.bz2
sandhi-1d58532ed3c14948b0bfb15a24cfe52718e0960f.zip
gras: should be set capacity for this queue
Diffstat (limited to 'lib')
-rw-r--r--lib/theron_allocator.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/theron_allocator.cpp b/lib/theron_allocator.cpp
index aa856a4..8a654f3 100644
--- a/lib/theron_allocator.cpp
+++ b/lib/theron_allocator.cpp
@@ -37,7 +37,7 @@ static struct WorkerAllocator : Theron::IAllocator
WorkerAllocator(void)
{
const size_t N = MY_ALLOCATOR_POOL_SIZE/MY_ALLOCATOR_CHUNK_SIZE;
- queue.resize(N);
+ queue.set_capacity(N);
for (size_t i = 0; i < N; i++)
{
const ptrdiff_t pool_ptr = ptrdiff_t(pool) + i*MY_ALLOCATOR_CHUNK_SIZE;