diff options
Diffstat (limited to 'lib/theron_allocator.cpp')
-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; |