From 1d58532ed3c14948b0bfb15a24cfe52718e0960f Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Sun, 10 Feb 2013 09:41:06 -0800 Subject: gras: should be set capacity for this queue --- lib/theron_allocator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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; -- cgit