mirror of
https://github.com/mutouyun/cpp-ipc.git
synced 2025-12-07 01:06: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 ipc {
|
||||||
namespace mem {
|
namespace mem {
|
||||||
|
|
||||||
using async_pool_alloc = static_wrapper<variable_wrapper<async_wrapper<
|
//using async_pool_alloc = static_wrapper<variable_wrapper<async_wrapper<
|
||||||
detail::fixed_alloc<
|
// detail::fixed_alloc<
|
||||||
variable_alloc <sizeof(void*) * 1024 * 256>,
|
// variable_alloc <sizeof(void*) * 1024 * 256>,
|
||||||
fixed_expand_policy<sizeof(void*) * 1024, sizeof(void*) * 1024 * 256>
|
// fixed_expand_policy<sizeof(void*) * 1024, sizeof(void*) * 1024 * 256>
|
||||||
>,
|
// >,
|
||||||
default_recycler >>>;
|
// default_recycler >>>;
|
||||||
|
using async_pool_alloc = ipc::mem::static_alloc;
|
||||||
|
|
||||||
template <typename T>
|
template <typename T>
|
||||||
using allocator = allocator_wrapper<T, async_pool_alloc>;
|
using allocator = allocator_wrapper<T, async_pool_alloc>;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user