mix of allocate and construct in vyukov_queue_pool
Concurrent Data Structure library
Brought to you by:
khizmax
In the documentation, it is stated that the pool should be used the following way :
Foo * p = pool_allocator().allocate( 1 );
new(p) Foo;
But when creating the pool, the preallocate_pool function call cxx_allocator().NewArray that does allocate and construct (so if i'm not wrong it calls the constructor ?) and the same goes for vyukov_queue_pool::allocate when the queue is empty when fallbacking to cxx_allocator().New().
Is it by design? Do i miss something ?
Fixed, see https://github.com/khizmax/libcds/issues/57