static_alloc is used by default

This commit is contained in:
木头云 2021-05-07 15:35:10 +08:00 committed by GitHub
parent 9667d5078f
commit a4a7b85f47
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,12 +17,13 @@
namespace ipc {
namespace mem {
using async_pool_alloc = static_wrapper<variable_wrapper<async_wrapper<
detail::fixed_alloc<
variable_alloc <sizeof(void*) * 1024 * 256>,
fixed_expand_policy<sizeof(void*) * 1024, sizeof(void*) * 1024 * 256>
>,
default_recycler >>>;
//using async_pool_alloc = static_wrapper<variable_wrapper<async_wrapper<
// detail::fixed_alloc<
// variable_alloc <sizeof(void*) * 1024 * 256>,
// fixed_expand_policy<sizeof(void*) * 1024, sizeof(void*) * 1024 * 256>
// >,
// default_recycler >>>;
using async_pool_alloc = ipc::mem::static_alloc;
template <typename T>
using allocator = allocator_wrapper<T, async_pool_alloc>;