diff options
author | Josh Blum | 2013-02-10 09:41:06 -0800 |
---|---|---|
committer | Josh Blum | 2013-02-10 09:41:06 -0800 |
commit | 1d58532ed3c14948b0bfb15a24cfe52718e0960f (patch) | |
tree | 56d98fc8a5c3016cc4659633473273b2cc24627c /lib | |
parent | add1d9d5c82777c243a8be4d34a36acc59ae411f (diff) | |
download | sandhi-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.cpp | 2 |
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; |