mirror of
https://github.com/mutouyun/cpp-ipc.git
synced 2025-12-06 16:56:45 +08:00
static_alloc is used by default
This commit is contained in:
parent
9667d5078f
commit
a4a7b85f47
@ -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>;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user