mirror of
https://github.com/mutouyun/cpp-ipc.git
synced 2026-02-07 10:19:47 +08:00
use 'replenish' for async_wrapper
This commit is contained in:
parent
56484c0c8f
commit
45bf1a7b38
@ -12,8 +12,6 @@
|
|||||||
|
|
||||||
#include "platform/detail.h"
|
#include "platform/detail.h"
|
||||||
|
|
||||||
#include "log.h"
|
|
||||||
|
|
||||||
namespace ipc {
|
namespace ipc {
|
||||||
namespace mem {
|
namespace mem {
|
||||||
|
|
||||||
|
|||||||
@ -224,10 +224,10 @@ private:
|
|||||||
w_->recycler_.collect(std::move(*this));
|
w_->recycler_.collect(std::move(*this));
|
||||||
}
|
}
|
||||||
|
|
||||||
// auto alloc(std::size_t size) {
|
auto alloc(std::size_t size) {
|
||||||
// w_->recycler_.try_replenish(*this, size);
|
w_->recycler_.try_replenish(*this, size);
|
||||||
// return AllocP::alloc(size);
|
return AllocP::alloc(size);
|
||||||
// }
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
friend class alloc_proxy;
|
friend class alloc_proxy;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user