Home
last modified time | relevance | path

Searched refs:allocator (Results 1 - 3 of 3) sorted by relevance

/commonlibrary/rust/ylong_runtime/ylong_runtime/src/net/
H A Ddriver.rs143 allocator: Slab<ScheduleIO>,
204 let allocator = slab.handle();
207 allocator,
300 let allocator = slab.handle(); in initialize()
303 allocator, in initialize()
353 self.allocator.allocate().ok_or_else(|| { in allocate_schedule_io_pair()
/commonlibrary/c_utils/base/src/
H A Dparcel.cpp36 Parcel::Parcel(Allocator *allocator) in Parcel() argument
38 if (allocator != nullptr) { in Parcel()
39 allocator_ = allocator; in Parcel()
238 bool Parcel::SetAllocator(Allocator *allocator) in SetAllocator() argument
240 if ((allocator == nullptr) || (allocator_ == allocator)) { in SetAllocator()
249 void *newData = allocator->Alloc(dataSize_); in SetAllocator()
256 allocator->Dealloc(newData); in SetAllocator()
265 allocator_ = allocator; in SetAllocator()
/commonlibrary/c_utils/base/include/
H A Dparcel.h22 * allocator are provided.
123 * @brief Defines a memory allocator for data in `Parcel`.
137 * @brief Provides the default implementation for a memory allocator.
139 * @note A non-default allocator for a parcel must be specified manually.
181 * @brief Creates a `Parcel` object with the specified memory allocator.
183 * @param allocator Indicates the memory allocator.
185 explicit Parcel(Allocator *allocator);
258 * @note The memory allocator will try to reallocate the data region
690 * @brief Sets a memory allocator fo
[all...]

Completed in 5 milliseconds