mirror of
https://github.com/mutouyun/cpp-ipc.git
synced 2026-01-01 03:12:13 +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 "log.h"
|
||||
|
||||
namespace ipc {
|
||||
namespace mem {
|
||||
|
||||
|
||||
@ -224,10 +224,10 @@ private:
|
||||
w_->recycler_.collect(std::move(*this));
|
||||
}
|
||||
|
||||
// auto alloc(std::size_t size) {
|
||||
// w_->recycler_.try_replenish(*this, size);
|
||||
// return AllocP::alloc(size);
|
||||
// }
|
||||
auto alloc(std::size_t size) {
|
||||
w_->recycler_.try_replenish(*this, size);
|
||||
return AllocP::alloc(size);
|
||||
}
|
||||
};
|
||||
|
||||
friend class alloc_proxy;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user